MODFLOW 6
version 6.6.0.dev0
USGS Modular Hydrologic Model
|
This module contains the TspSpc Module. More...
Data Types | |
type | tspspctype |
Derived type for managing SPC input. More... | |
Functions/Subroutines | |
subroutine | initialize (this, dis, id, inunit, iout, name_model, packNameFlow, dvn) |
@ brief Initialize the SPC type More... | |
subroutine | allocate_scalars (this) |
@ brief Allocate package scalars More... | |
subroutine | read_options (this) |
@ brief Read options for package More... | |
subroutine | read_dimensions (this) |
@ brief Read dimensions for package More... | |
subroutine | allocate_arrays (this) |
@ brief Allocate package arrays More... | |
real(dp) function | get_value (this, ientry, nbound_flow) |
@ brief Get the data value from this package More... | |
subroutine | spc_rp (this) |
@ brief Read and prepare More... | |
subroutine | spc_rp_list (this) |
@ brief spc_rp_list More... | |
subroutine | spc_rp_array (this, line) |
@ brief spc_rp_array More... | |
subroutine | spc_ad (this, nbound_flowpack, budtxt) |
@ brief Advance More... | |
subroutine | spc_da (this) |
@ brief Deallocate variables More... | |
subroutine | read_check_ionper (this) |
@ brief Check ionper More... | |
subroutine | set_value (this, ival) |
@ brief Set the data value from the input file More... | |
subroutine | check_flow_package (this, nbound_flowpack, budtxt) |
@ brief check_flow_package More... | |
Variables | |
character(len=lenftype) | ftype = 'SPC' |
character(len=lenpackagename) | text = 'STRESS PACK COMP' |
This module contains the code for reading and storing a generic input file of source and sink concentrations or temperatures.
|
private |
Allocate and initialize package arrays.
this | TspSpcType object |
Definition at line 314 of file TspSpc.f90.
|
private |
Allocate and initialize package scalars.
this | TspSpcType object |
Definition at line 150 of file TspSpc.f90.
subroutine tspspcmodule::check_flow_package | ( | class(tspspctype), intent(inout) | this, |
integer(i4b), intent(in) | nbound_flowpack, | ||
character(len=*), intent(in) | budtxt | ||
) |
Check to make sure that flow package information is consistent with this SPC information.
[in,out] | this | TspSpcType object |
Definition at line 714 of file TspSpc.f90.
real(dp) function tspspcmodule::get_value | ( | class(tspspctype) | this, |
integer(i4b), intent(in) | ientry, | ||
integer(i4b), intent(in) | nbound_flow | ||
) |
Get the floating point value from the dblvec array.
this | TspSpcType object | |
[in] | ientry | index of the data to return |
[in] | nbound_flow | size of bound list in flow package |
Definition at line 336 of file TspSpc.f90.
|
private |
Initialize the SPC object by setting up the parser, and time series manager, reading options and dimensions, and allocating memory.
this | TspSpcType | |
[in] | dis | discretization package |
[in] | id | id number for this spc package |
[in] | inunit | unit number for input |
[in] | iout | unit number for output |
[in] | name_model | character string containing model name |
[in] | packnameflow | character string containing name of corresponding flow package |
[in] | dvn | dependent variable name (CONCENTRATION or TEMPERATURE) |
Definition at line 89 of file TspSpc.f90.
subroutine tspspcmodule::read_check_ionper | ( | class(tspspctype), intent(inout) | this | ) |
Generic method to read and check ionperiod, which is used to determine if new period data should be read from the input file. The check of ionperiod also makes sure periods are increasing in subsequent period data blocks. Copied from NumericalPackage
[in,out] | this | TspSpcType object |
Definition at line 656 of file TspSpc.f90.
|
private |
Read dimensions for this package.
[in,out] | this | TspSpcType object |
Definition at line 259 of file TspSpc.f90.
subroutine tspspcmodule::read_options | ( | class(tspspctype) | this | ) |
Read options for this package.
Definition at line 186 of file TspSpc.f90.
subroutine tspspcmodule::set_value | ( | class(tspspctype), intent(inout) | this, |
integer(i4b), intent(in) | ival | ||
) |
Set the floating point value in the dblvec array using strings returned from the parser. Allow for time series names.
[in,out] | this | TspSpcType object |
Definition at line 683 of file TspSpc.f90.
subroutine tspspcmodule::spc_ad | ( | class(tspspctype), intent(inout) | this, |
integer(i4b), intent(in) | nbound_flowpack, | ||
character(len=*), intent(in) | budtxt | ||
) |
Call the advance method on the time series so that new values are interpolated and entered into dblvec
[in,out] | this | TspSpcType object |
Definition at line 602 of file TspSpc.f90.
|
private |
Deallocate and nullify package variables.
this | TspSpcType object |
Definition at line 623 of file TspSpc.f90.
|
private |
Read and prepare the period data block and fill dblvec if the next period block corresponds to this time step.
[in,out] | this | TspSpcType object |
Definition at line 380 of file TspSpc.f90.
subroutine tspspcmodule::spc_rp_array | ( | class(tspspctype), intent(inout) | this, |
character(len=linelength), intent(inout) | line | ||
) |
Read the stress period data in array format
[in,out] | this | TspSpcType object |
Definition at line 521 of file TspSpc.f90.
subroutine tspspcmodule::spc_rp_list | ( | class(tspspctype), intent(inout) | this | ) |
Read the stress period data in list format
[in,out] | this | TspSpcType object |
Definition at line 456 of file TspSpc.f90.
|
private |
Definition at line 29 of file TspSpc.f90.
|
private |
Definition at line 30 of file TspSpc.f90.