MODFLOW 6
version 6.6.0.dev0
USGS Modular Hydrologic Model
|
This module contains the SourceCommonModule. More...
Functions/Subroutines | |
character(len=lenpackagename) function, public | package_source_type (sourcename) |
source identifier from model namfile FNAME array More... | |
character(len=lencomponentname) function, public | idm_component_type (component) |
component from package or model type More... | |
character(len=lencomponentname) function, public | idm_subcomponent_type (component, subcomponent) |
component from package or model type More... | |
character(len=lenpackagename) function, public | idm_subcomponent_name (component_type, subcomponent_type, sc_name) |
model package subcomponent name More... | |
character(len=lenpackagetype) function, public | file_ext (filename) |
input file extension More... | |
subroutine, public | get_shape_from_string (shape_string, array_shape, memoryPath) |
subroutine, public | get_layered_shape (mshape, nlay, layer_shape) |
subroutine, public | set_model_shape (ftype, fname, model_mempath, dis_mempath, model_shape) |
routine for setting the model shape More... | |
integer(i4b) function, public | ifind_charstr (array, str) |
logical(lgp) function, public | filein_fname (filename, tagname, input_mempath, input_fname) |
enforce and set a single input filename provided via FILEIN keyword More... | |
subroutine, public | inlen_check (input_name, mf6_name, maxlen, name_type) |
store an error for input exceeding internal name length More... | |
This module contains source independent input processing helper routines.
character(len=lenpackagetype) function, public sourcecommonmodule::file_ext | ( | character(len=*), intent(in) | filename | ) |
Return a file extension, or an empty string if not identified.
Definition at line 164 of file SourceCommon.f90.
logical(lgp) function, public sourcecommonmodule::filein_fname | ( | character(len=*), intent(inout) | filename, |
character(len=*), intent(in) | tagname, | ||
character(len=*), intent(in) | input_mempath, | ||
character(len=*), intent(in) | input_fname | ||
) |
Set a FILEIN filename provided via an OPTIONS block. Only use this function if a maximum of one FILEIN file name string is expected.
Return true if single FILEIN file name found and set, return false if FILEIN tag not found.
Definition at line 450 of file SourceCommon.f90.
subroutine, public sourcecommonmodule::get_layered_shape | ( | integer(i4b), dimension(:), intent(in) | mshape, |
integer(i4b), intent(out) | nlay, | ||
integer(i4b), dimension(:), intent(out), allocatable | layer_shape | ||
) |
subroutine, public sourcecommonmodule::get_shape_from_string | ( | character(len=*), intent(in) | shape_string, |
integer(i4b), dimension(:), intent(inout), allocatable | array_shape, | ||
character(len=*), intent(in) | memoryPath | ||
) |
[in] | memorypath | memorypath to put loaded information |
Definition at line 187 of file SourceCommon.f90.
character(len=lencomponentname) function, public sourcecommonmodule::idm_component_type | ( | character(len=*), intent(in) | component | ) |
Return the component type typically derived from package file type, i.e. return GWF when input is GWF6. This function checks the resultant component type and throws a terminating error if not supported by IDM in some capacity.
Definition at line 61 of file SourceCommon.f90.
character(len=lenpackagename) function, public sourcecommonmodule::idm_subcomponent_name | ( | character(len=*), intent(in) | component_type, |
character(len=*), intent(in) | subcomponent_type, | ||
character(len=*), intent(in) | sc_name | ||
) |
Return the IDM component name, which is the package type for base packages and the package name for multi package (i.e. stress) types.
Definition at line 135 of file SourceCommon.f90.
character(len=lencomponentname) function, public sourcecommonmodule::idm_subcomponent_type | ( | character(len=*), intent(in) | component, |
character(len=*), intent(in) | subcomponent | ||
) |
Return the subcomponent type typically derived from package file type, i.e. return CHD when input is CHD6. Note this function is called on file types that are both idm integrated and not and should not set an error based on this difference.
[in] | component | component, e.g. GWF6 |
[in] | subcomponent | subcomponent, e.g. CHD6 |
Definition at line 99 of file SourceCommon.f90.
integer(i4b) function, public sourcecommonmodule::ifind_charstr | ( | type(characterstringtype), dimension(:), intent(in) | array, |
character(len=*) | str | ||
) |
subroutine, public sourcecommonmodule::inlen_check | ( | type(characterstringtype), intent(in) | input_name, |
character(len=*), intent(inout) | mf6_name, | ||
integer(i4b), intent(in) | maxlen, | ||
character(len=*), intent(in) | name_type | ||
) |
Definition at line 488 of file SourceCommon.f90.
character(len=lenpackagename) function, public sourcecommonmodule::package_source_type | ( | character(len=*), intent(in) | sourcename | ) |
Return the source type for a package listed in the model nam file packages block FNAME field.
Definition at line 35 of file SourceCommon.f90.
subroutine, public sourcecommonmodule::set_model_shape | ( | character(len=*), intent(in) | ftype, |
character(len=*), intent(in) | fname, | ||
character(len=*), intent(in) | model_mempath, | ||
character(len=*), intent(in) | dis_mempath, | ||
integer(i4b), dimension(:), intent(inout), pointer, contiguous | model_shape | ||
) |
The model shape must be set in the memory manager because individual packages need to know the shape of the arrays to read.
Definition at line 245 of file SourceCommon.f90.