![]() |
MODFLOW 6
version 6.9.0.dev0
USGS Modular Hydrologic Model
|
Data Types | |
| type | gridfilereadertype |
Functions/Subroutines | |
| subroutine | initialize (this, iu) |
| @Brief Initialize the grid file reader. More... | |
| subroutine | finalize (this) |
| Finalize the grid file reader. More... | |
| subroutine | read_header (this) |
| Read the file's self-describing header. Internal use only. More... | |
| subroutine | read_header_meta (this) |
| Read self-describing metadata (first four lines). Internal use only. More... | |
| subroutine | read_header_body (this) |
| Read the header body section (text following first. More... | |
| integer(i4b) function | lookup (this, name, ndim, typ, desc) |
| Look up a variable and check its rank and type. More... | |
| integer(i4b) function | read_int (this, name) |
| Read an integer scalar from a grid file. More... | |
| real(dp) function | read_dbl (this, name) |
| Read a double precision scalar from a grid file. More... | |
| integer(i4b) function, dimension(:), allocatable | read_int_1d (this, name) |
| Read a 1D integer array from a grid file. More... | |
| subroutine | read_int_1d_into (this, name, v) |
| Read a 1D integer array into a preallocated array. More... | |
| real(dp) function, dimension(:), allocatable | read_dbl_1d (this, name) |
| Read a 1D double array from a grid file. More... | |
| subroutine | read_dbl_1d_into (this, name, v) |
| Read a 1D double array into a preallocated array. More... | |
| character(len=:) function, allocatable | read_charstr (this, name) |
| Read a character string from a grid file. More... | |
| subroutine | read_charstr_into (this, name, charstr) |
| Read a character string into a preallocated string. More... | |
| integer(i4b) function, dimension(:), allocatable | read_grid_shape (this) |
| Read the grid shape from a grid file. More... | |
| logical(lgp) function | has_variable (this, name) |
| Check whether the grid file contains a variable. More... | |
Variables | |
| integer(i4b), parameter | typ_int = 1 |
| integer variable type More... | |
| integer(i4b), parameter | typ_dbl = 2 |
| double precision variable type More... | |
| integer(i4b), parameter | typ_chr = 3 |
| character variable type More... | |
| subroutine gridfilereadermodule::finalize | ( | class(gridfilereadertype) | this | ) |
| logical(lgp) function gridfilereadermodule::has_variable | ( | class(gridfilereadertype) | this, |
| character(len=*), intent(in) | name | ||
| ) |
Definition at line 435 of file GridFileReader.f90.
| subroutine gridfilereadermodule::initialize | ( | class(gridfilereadertype) | this, |
| integer(i4b), intent(in) | iu | ||
| ) |
| integer(i4b) function gridfilereadermodule::lookup | ( | class(gridfilereadertype), intent(inout) | this, |
| character(len=*), intent(in) | name, | ||
| integer(i4b), intent(in) | ndim, | ||
| integer(i4b), intent(in) | typ, | ||
| character(len=*), intent(in) | desc | ||
| ) |
Returns the variable's index. Terminates with an error if the variable does not exist or does not have the expected rank and type. Internal use only.
| [in] | ndim | expected number of dims |
| [in] | typ | expected type |
| [in] | desc | expected kind, for error messages |
Definition at line 230 of file GridFileReader.f90.

| character(len=:) function, allocatable gridfilereadermodule::read_charstr | ( | class(gridfilereadertype), intent(inout) | this, |
| character(len=*), intent(in) | name | ||
| ) |
Allocates and returns a new character string containing the data.
Definition at line 365 of file GridFileReader.f90.
| subroutine gridfilereadermodule::read_charstr_into | ( | class(gridfilereadertype), intent(inout) | this, |
| character(len=*), intent(in) | name, | ||
| character(len=:), intent(inout), allocatable | charstr | ||
| ) |
Populates a preallocated character string. If the string is not allocated or is the wrong length, it will be (re)allocated to the correct length.
Definition at line 384 of file GridFileReader.f90.
| real(dp) function gridfilereadermodule::read_dbl | ( | class(gridfilereadertype), intent(inout) | this, |
| character(len=*), intent(in) | name | ||
| ) |
Definition at line 263 of file GridFileReader.f90.
| real(dp) function, dimension(:), allocatable gridfilereadermodule::read_dbl_1d | ( | class(gridfilereadertype), intent(inout) | this, |
| character(len=*), intent(in) | name | ||
| ) |
Allocates and returns a new array containing the data.
Definition at line 322 of file GridFileReader.f90.
| subroutine gridfilereadermodule::read_dbl_1d_into | ( | class(gridfilereadertype), intent(inout) | this, |
| character(len=*), intent(in) | name, | ||
| real(dp), dimension(:), intent(inout) | v | ||
| ) |
Populates a preallocated array. Array must already be allocated to the correct size. This version is compatible with both allocatable arrays and memory-manager-allocated pointer targets.
Definition at line 342 of file GridFileReader.f90.

| integer(i4b) function, dimension(:), allocatable gridfilereadermodule::read_grid_shape | ( | class(gridfilereadertype) | this | ) |
Definition at line 402 of file GridFileReader.f90.
| subroutine gridfilereadermodule::read_header | ( | class(gridfilereadertype) | this | ) |
Definition at line 88 of file GridFileReader.f90.
| subroutine gridfilereadermodule::read_header_body | ( | class(gridfilereadertype) | this | ) |
| subroutine gridfilereadermodule::read_header_meta | ( | class(gridfilereadertype) | this | ) |
| integer(i4b) function gridfilereadermodule::read_int | ( | class(gridfilereadertype), intent(inout) | this, |
| character(len=*), intent(in) | name | ||
| ) |
Definition at line 250 of file GridFileReader.f90.
| integer(i4b) function, dimension(:), allocatable gridfilereadermodule::read_int_1d | ( | class(gridfilereadertype), intent(inout) | this, |
| character(len=*), intent(in) | name | ||
| ) |
Allocates and returns a new array containing the data.
Definition at line 279 of file GridFileReader.f90.
| subroutine gridfilereadermodule::read_int_1d_into | ( | class(gridfilereadertype), intent(inout) | this, |
| character(len=*), intent(in) | name, | ||
| integer(i4b), dimension(:), intent(inout) | v | ||
| ) |
Populates a preallocated array. Array must already be allocated to the correct size. This version is compatible with both allocatable arrays and memory-manager-allocated pointer targets.
Definition at line 299 of file GridFileReader.f90.

| integer(i4b), parameter gridfilereadermodule::typ_chr = 3 |
Definition at line 17 of file GridFileReader.f90.
| integer(i4b), parameter gridfilereadermodule::typ_dbl = 2 |
Definition at line 16 of file GridFileReader.f90.
| integer(i4b), parameter gridfilereadermodule::typ_int = 1 |
Definition at line 15 of file GridFileReader.f90.