MODFLOW 6
version 6.5.0.dev2
MODFLOW 6 Code Documentation
|
This module contains the LoadMf6FileModule. More...
Data Types | |
type | loadmf6filetype |
Static parser based input loader. More... | |
Functions/Subroutines | |
subroutine | load (this, parser, mf6_input, filename, iout) |
load all static input blocks More... | |
subroutine | init (this, parser, mf6_input, filename, iout) |
init More... | |
subroutine | load_block (this, iblk) |
load a single block More... | |
subroutine | finalize (this) |
finalize More... | |
subroutine | block_post_process (this, iblk) |
Post parse block handling. More... | |
recursive subroutine | parse_block (this, iblk, recursive_call) |
parse block More... | |
subroutine | parse_io_tag (this, iblk, pkgtype, which, tag) |
subroutine | parse_keyword_tag (this, iblk, tag, idt) |
recursive subroutine | parse_tag (this, iblk, recursive_call) |
load an individual input record into memory More... | |
type(inputparamdefinitiontype) function | block_index_dfn (this, iblk) |
subroutine | parse_structarray_block (this, iblk) |
parse a structured array record into memory manager More... | |
subroutine | load_keyword_type (parser, idt, memoryPath, iout) |
load type keyword More... | |
subroutine | load_string_type (parser, idt, memoryPath, iout) |
load type string More... | |
subroutine | load_io_tag (parser, idt, memoryPath, which, iout) |
load type string More... | |
subroutine | load_auxvar_names (parser, idt, memoryPath, iout) |
load aux variable names More... | |
subroutine | load_integer_type (parser, idt, memoryPath, iout) |
load type integer More... | |
subroutine | load_integer1d_type (parser, idt, memoryPath, mshape, export, iout) |
load type 1d integer More... | |
subroutine | load_integer2d_type (parser, idt, memoryPath, mshape, export, iout) |
load type 2d integer More... | |
subroutine | load_integer3d_type (parser, idt, memoryPath, mshape, export, iout) |
load type 3d integer More... | |
subroutine | load_double_type (parser, idt, memoryPath, iout) |
load type double More... | |
subroutine | load_double1d_type (parser, idt, memoryPath, mshape, export, iout) |
load type 1d double More... | |
subroutine | load_double2d_type (parser, idt, memoryPath, mshape, export, iout) |
load type 2d double More... | |
subroutine | load_double3d_type (parser, idt, memoryPath, mshape, export, iout) |
load type 3d double More... | |
subroutine | get_layered_shape (mshape, nlay, layer_shape) |
This module contains the input data model routines for loading static data from a MODFLOW 6 input file using the block parser.
|
private |
Definition at line 511 of file LoadMf6File.f90.
subroutine loadmf6filemodule::block_post_process | ( | class(loadmf6filetype) | this, |
integer(i4b), intent(in) | iblk | ||
) |
Definition at line 209 of file LoadMf6File.f90.
subroutine loadmf6filemodule::finalize | ( | class(loadmf6filetype) | this | ) |
init / finalize are only used when load_block() will be called
Definition at line 185 of file LoadMf6File.f90.
subroutine loadmf6filemodule::get_layered_shape | ( | integer(i4b), dimension(:), intent(in) | mshape, |
integer(i4b), intent(out) | nlay, | ||
integer(i4b), dimension(:), intent(out), allocatable | layer_shape | ||
) |
subroutine loadmf6filemodule::init | ( | class(loadmf6filetype) | this, |
type(blockparsertype), intent(inout), target | parser, | ||
type(modflowinputtype), intent(in) | mf6_input, | ||
character(len=*), intent(in) | filename, | ||
integer(i4b), intent(in) | iout | ||
) |
init / finalize are only used when load_block() will be called
Definition at line 115 of file LoadMf6File.f90.
|
private |
Invoke this routine to load all static input blocks in single call.
Definition at line 77 of file LoadMf6File.f90.
subroutine loadmf6filemodule::load_auxvar_names | ( | type(blockparsertype), intent(inout) | parser, |
type(inputparamdefinitiontype), intent(in) | idt, | ||
character(len=*), intent(in) | memoryPath, | ||
integer(i4b), intent(in) | iout | ||
) |
[in,out] | parser | block parser |
[in] | idt | input data type object describing this record |
[in] | memorypath | memorypath to put loaded information |
[in] | iout | unit number for output |
Definition at line 716 of file LoadMf6File.f90.
subroutine loadmf6filemodule::load_block | ( | class(loadmf6filetype) | this, |
integer(i4b), intent(in) | iblk | ||
) |
Assumed in order load of single (next) block. If a StructArray object is allocated to load this block it persists until this routine (or finalize) is called again.
Definition at line 156 of file LoadMf6File.f90.
|
private |
[in,out] | parser | block parser |
[in] | idt | input data type object describing this record |
[in] | memorypath | memorypath to put loaded information |
[in] | mshape | model shape |
[in] | export | export to ascii layer files |
[in] | iout | unit number for output |
Definition at line 947 of file LoadMf6File.f90.
subroutine loadmf6filemodule::load_double2d_type | ( | type(blockparsertype), intent(inout) | parser, |
type(inputparamdefinitiontype), intent(in) | idt, | ||
character(len=*), intent(in) | memoryPath, | ||
integer(i4b), dimension(:), intent(in), pointer, contiguous | mshape, | ||
logical(lgp), intent(in) | export, | ||
integer(i4b), intent(in) | iout | ||
) |
[in,out] | parser | block parser |
[in] | idt | input data type object describing this record |
[in] | memorypath | memorypath to put loaded information |
[in] | mshape | model shape |
[in] | export | export to ascii layer files |
[in] | iout | unit number for output |
Definition at line 1003 of file LoadMf6File.f90.
subroutine loadmf6filemodule::load_double3d_type | ( | type(blockparsertype), intent(inout) | parser, |
type(inputparamdefinitiontype), intent(in) | idt, | ||
character(len=*), intent(in) | memoryPath, | ||
integer(i4b), dimension(:), intent(in), pointer, contiguous | mshape, | ||
logical(lgp), intent(in) | export, | ||
integer(i4b), intent(in) | iout | ||
) |
[in,out] | parser | block parser |
[in] | idt | input data type object describing this record |
[in] | memorypath | memorypath to put loaded information |
[in] | mshape | model shape |
[in] | export | export to ascii layer files |
[in] | iout | unit number for output |
Definition at line 1056 of file LoadMf6File.f90.
subroutine loadmf6filemodule::load_double_type | ( | type(blockparsertype), intent(inout) | parser, |
type(inputparamdefinitiontype), intent(in) | idt, | ||
character(len=*), intent(in) | memoryPath, | ||
integer(i4b), intent(in) | iout | ||
) |
[in,out] | parser | block parser |
[in] | idt | input data type object describing this record |
[in] | memorypath | memorypath to put loaded information |
[in] | iout | unit number for output |
Definition at line 933 of file LoadMf6File.f90.
|
private |
[in,out] | parser | block parser |
[in] | idt | input data type object describing this record |
[in] | memorypath | memorypath to put loaded information |
[in] | mshape | model shape |
[in] | export | export to ascii layer files |
[in] | iout | unit number for output |
Definition at line 765 of file LoadMf6File.f90.
subroutine loadmf6filemodule::load_integer2d_type | ( | type(blockparsertype), intent(inout) | parser, |
type(inputparamdefinitiontype), intent(in) | idt, | ||
character(len=*), intent(in) | memoryPath, | ||
integer(i4b), dimension(:), intent(in), pointer, contiguous | mshape, | ||
logical(lgp), intent(in) | export, | ||
integer(i4b), intent(in) | iout | ||
) |
[in,out] | parser | block parser |
[in] | idt | input data type object describing this record |
[in] | memorypath | memorypath to put loaded information |
[in] | mshape | model shape |
[in] | export | export to ascii layer files |
[in] | iout | unit number for output |
Definition at line 822 of file LoadMf6File.f90.
subroutine loadmf6filemodule::load_integer3d_type | ( | type(blockparsertype), intent(inout) | parser, |
type(inputparamdefinitiontype), intent(in) | idt, | ||
character(len=*), intent(in) | memoryPath, | ||
integer(i4b), dimension(:), intent(in), pointer, contiguous | mshape, | ||
logical(lgp), intent(in) | export, | ||
integer(i4b), intent(in) | iout | ||
) |
[in,out] | parser | block parser |
[in] | idt | input data type object describing this record |
[in] | memorypath | memorypath to put loaded information |
[in] | mshape | model shape |
[in] | export | export to ascii layer files |
[in] | iout | unit number for output |
Definition at line 875 of file LoadMf6File.f90.
subroutine loadmf6filemodule::load_integer_type | ( | type(blockparsertype), intent(inout) | parser, |
type(inputparamdefinitiontype), intent(in) | idt, | ||
character(len=*), intent(in) | memoryPath, | ||
integer(i4b), intent(in) | iout | ||
) |
[in,out] | parser | block parser |
[in] | idt | input data type object describing this record |
[in] | memorypath | memorypath to put loaded information |
[in] | iout | unit number for output |
Definition at line 751 of file LoadMf6File.f90.
|
private |
[in,out] | parser | block parser |
[in] | idt | input data type object describing this record |
[in] | memorypath | memorypath to put loaded information |
[in] | iout | unit number for output |
Definition at line 681 of file LoadMf6File.f90.
subroutine loadmf6filemodule::load_keyword_type | ( | type(blockparsertype), intent(inout) | parser, |
type(inputparamdefinitiontype), intent(in) | idt, | ||
character(len=*), intent(in) | memoryPath, | ||
integer(i4b), intent(in) | iout | ||
) |
[in,out] | parser | block parser |
[in] | idt | input data type object describing this record |
[in] | memorypath | memorypath to put loaded information |
[in] | iout | unit number for output |
Definition at line 651 of file LoadMf6File.f90.
|
private |
[in,out] | parser | block parser |
[in] | idt | input data type object describing this record |
[in] | memorypath | memorypath to put loaded information |
[in] | iout | unit number for output |
Definition at line 665 of file LoadMf6File.f90.
recursive subroutine loadmf6filemodule::parse_block | ( | class(loadmf6filetype) | this, |
integer(i4b), intent(in) | iblk, | ||
logical(lgp), intent(in) | recursive_call | ||
) |
[in] | recursive_call | true if recursive call |
Definition at line 264 of file LoadMf6File.f90.
subroutine loadmf6filemodule::parse_io_tag | ( | class(loadmf6filetype) | this, |
integer(i4b), intent(in) | iblk, | ||
character(len=*), intent(in) | pkgtype, | ||
character(len=*), intent(in) | which, | ||
character(len=*), intent(in) | tag | ||
) |
|
private |
Definition at line 360 of file LoadMf6File.f90.
|
private |
A structarray is similar to a numpy recarray. It it used to load a list of data in which each column in the list may be a different type. Each column in the list is stored as a 1d vector.
Definition at line 552 of file LoadMf6File.f90.
recursive subroutine loadmf6filemodule::parse_tag | ( | class(loadmf6filetype) | this, |
integer(i4b), intent(in) | iblk, | ||
logical(lgp), intent(in) | recursive_call | ||
) |
Load an individual input record into the memory manager. Allow for recursive calls in the case that multiple tags are on a single line.
[in] | recursive_call | true if recursive call |
Definition at line 435 of file LoadMf6File.f90.