MODFLOW 6
version 6.6.0.dev0
USGS Modular Hydrologic Model
|
Data Types | |
type | spatialmodelconnectiontype |
Class to manage spatial connection of a model to one or more models of the same type. Spatial connection here means that the model domains (spatial discretization) are adjacent and connected via DisConnExchangeType object(s). The connection itself is a Numerical Exchange as well, and part of a Numerical Solution providing the amat and rhs. More... | |
Functions/Subroutines | |
subroutine | spatialconnection_ctor (this, model, exchange, name) |
Construct the spatial connection base. More... | |
subroutine | createmodelhalo (this) |
Find all models that might participate in this interface. More... | |
recursive subroutine | addmodelneighbors (this, model_id, virtual_exchanges, depth, is_root, mask) |
Add neighbors and nbrs-of-nbrs to the model tree. More... | |
subroutine | spatialcon_df (this) |
Define this connection, this is where the discretization (DISU) for the interface model is. More... | |
subroutine | spatialcon_ar (this) |
Allocate the connection,. More... | |
subroutine | spatialcon_setmodelptrs (this) |
set model pointers to connection More... | |
subroutine | spatialcon_connect (this) |
map interface model connections to our sparse matrix, More... | |
subroutine | maskownerconnections (this) |
Mask the owner's connections. More... | |
subroutine | createcoefficientmatrix (this, sparse) |
Add connections, handled by the interface model,. More... | |
subroutine | validateconnection (this) |
Validate this connection. More... | |
subroutine | cfg_dv (this, var_name, subcomp_name, map_type, sync_stages, exg_var_name) |
Add a variable from the interface model to be synchronized at the configured stages by copying from the source memory in the models/exchanges that are part. More... | |
class(spatialmodelconnectiontype) function, pointer, public | cast_as_smc (obj) |
Cast to SpatialModelConnectionType. More... | |
subroutine, public | add_smc_to_list (list, conn) |
Add connection to a list. More... | |
class(spatialmodelconnectiontype) function, pointer, public | get_smc_from_list (list, idx) |
Get the connection from a list. More... | |
subroutine, public spatialmodelconnectionmodule::add_smc_to_list | ( | type(listtype), intent(inout) | list, |
class(spatialmodelconnectiontype), intent(in), pointer | conn | ||
) |
[in,out] | list | the list |
[in] | conn | the connection |
Definition at line 697 of file SpatialModelConnection.f90.
|
private |
this | this connection |
model_id | the model (id) to add neighbors for |
virtual_exchanges | list with all virtual exchanges |
depth | the maximal number of exchanges between |
is_root | true when called for neighbor from primary exchange |
mask | don't add this one as a neighbor |
Definition at line 154 of file SpatialModelConnection.f90.
class(spatialmodelconnectiontype) function, pointer, public spatialmodelconnectionmodule::cast_as_smc | ( | class(*), intent(inout), pointer | obj | ) |
[in,out] | obj | object to be cast |
Definition at line 681 of file SpatialModelConnection.f90.
subroutine spatialmodelconnectionmodule::cfg_dv | ( | class(spatialmodelconnectiontype) | this, |
character(len=*) | var_name, | ||
character(len=*) | subcomp_name, | ||
integer(i4b) | map_type, | ||
integer(i4b), dimension(:) | sync_stages, | ||
character(len=*), optional | exg_var_name | ||
) |
this | this connection |
var_name | name of variable, e.g. "K11" |
subcomp_name | subcomponent, e.g. "NPF" |
map_type | type of variable map |
sync_stages | stages to sync |
exg_var_name | needed for exchange variables, e.g. SIMVALS |
Definition at line 652 of file SpatialModelConnection.f90.
subroutine spatialmodelconnectionmodule::createcoefficientmatrix | ( | class(spatialmodelconnectiontype) | this, |
type(sparsematrix), intent(inout) | sparse | ||
) |
this | this connection | |
[in,out] | sparse | the sparse matrix with the cell connections |
Definition at line 610 of file SpatialModelConnection.f90.
|
private |
this | this connection |
Definition at line 141 of file SpatialModelConnection.f90.
class(spatialmodelconnectiontype) function, pointer, public spatialmodelconnectionmodule::get_smc_from_list | ( | type(listtype), intent(inout) | list, |
integer(i4b), intent(in) | idx | ||
) |
[in,out] | list | the list |
[in] | idx | the index of the connection |
Definition at line 711 of file SpatialModelConnection.f90.
|
private |
Determine which connections are handled by the interface model (using the connections object in its discretization) and
this | the connection |
Definition at line 331 of file SpatialModelConnection.f90.
|
private |
|
private |
subroutine spatialmodelconnectionmodule::spatialcon_df | ( | class(spatialmodelconnectiontype) | this | ) |
|
private |
subroutine spatialmodelconnectionmodule::spatialconnection_ctor | ( | class(spatialmodelconnectiontype) | this, |
class(numericalmodeltype), intent(in), pointer | model, | ||
class(disconnexchangetype), intent(in), pointer | exchange, | ||
character(len=*), intent(in) | name | ||
) |
This constructor is typically called from a derived class.
this | the connection | |
[in] | model | the model that owns the connection |
[in] | exchange | the primary exchange from which the connection is created |
[in] | name | the connection name (for memory management mostly) |
Definition at line 111 of file SpatialModelConnection.f90.
subroutine spatialmodelconnectionmodule::validateconnection | ( | class(spatialmodelconnectiontype) | this | ) |
this | this connection |
Definition at line 622 of file SpatialModelConnection.f90.