![]() |
MODFLOW 6 version 6.9.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. | |
| subroutine | createmodelhalo (this) |
| Find all models that might participate in this interface. | |
| recursive subroutine | addmodelneighbors (this, model_id, virtual_exchanges, depth, is_root, mask) |
| Add neighbors and nbrs-of-nbrs to the model tree. | |
| subroutine | spatialcon_df (this) |
| Define this connection, this is where the discretization (DISU) for the interface model is. | |
| subroutine | spatialcon_ar (this) |
| Allocate the connection,. | |
| subroutine | spatialcon_setmodelptrs (this) |
| set model pointers to connection | |
| subroutine | spatialcon_connect (this) |
| map interface model connections to our sparse matrix, | |
| subroutine | maskownerconnections (this) |
| Mask the owner's connections. | |
| subroutine | spatialcon_ac (this, sparse) |
| Add connections, handled by the interface model, to the sparse matrix of the global system. | |
| subroutine | spatialcon_mc (this, matrix_sln) |
| Creates the mapping from the local system. | |
| subroutine | spatialcon_cf (this, kiter) |
| Calculate (or adjust) matrix coefficients, in this case those which are determined or affected. | |
| subroutine | spatialcon_fc (this, kiter, matrix_sln, rhs_sln, inwtflag) |
| Formulate coefficients from interface model. | |
| subroutine | spatialcon_da (this) |
| Deallocation. | |
| subroutine | setupgridconnection (this) |
| Creates the connection structure for the interface grid, starting from primary exchanges, then extending inward and outward, possibly across model boundaries. | |
| subroutine | allocatescalars (this) |
| Allocation of scalars. | |
| subroutine | allocatearrays (this) |
| Allocation of arrays. | |
| integer(i4b) function | getnrofconnections (this) |
| Returns total nr. of primary connections. | |
| subroutine | createcoefficientmatrix (this, sparse) |
| Create connection's matrix (ia,ja,amat) from sparse. | |
| subroutine | validateconnection (this) |
| Validate this connection. | |
| 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. | |
| class(spatialmodelconnectiontype) function, pointer, public | cast_as_smc (obj) |
| Cast to SpatialModelConnectionType. | |
| subroutine, public | add_smc_to_list (list, conn) |
| Add connection to a list. | |
| class(spatialmodelconnectiontype) function, pointer, public | get_smc_from_list (list, idx) |
| Get the connection from a list. | |
| 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 700 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 155 of file SpatialModelConnection.f90.

|
private |
| this | this connection |
Definition at line 578 of file SpatialModelConnection.f90.
|
private |
| this | this connection |
Definition at line 565 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 684 of file SpatialModelConnection.f90.

|
private |
| 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 655 of file SpatialModelConnection.f90.
|
private |
| 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 142 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 714 of file SpatialModelConnection.f90.


|
private |
| this | this connection |
Definition at line 599 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 332 of file SpatialModelConnection.f90.

|
private |
| this | this connection |
Definition at line 547 of file SpatialModelConnection.f90.
|
private |
| this | this connection | |
| [in,out] | sparse | sparse matrix to store the connections |
Definition at line 384 of file SpatialModelConnection.f90.
|
private |
| this | this connection |
Definition at line 267 of file SpatialModelConnection.f90.
|
private |
| this | this connection | |
| [in] | kiter | the iteration counter |
Definition at line 457 of file SpatialModelConnection.f90.
|
private |
| this | this connection |
Definition at line 307 of file SpatialModelConnection.f90.
|
private |
| this | this connection |
Definition at line 515 of file SpatialModelConnection.f90.

|
private |
| this | this connection |
Definition at line 240 of file SpatialModelConnection.f90.
|
private |
| this | this connection | |
| [in] | kiter | the iteration counter |
| matrix_sln | the system matrix | |
| [in,out] | rhs_sln | global right-hand-side |
| [in] | inwtflag | newton-raphson flag |
Definition at line 476 of file SpatialModelConnection.f90.
|
private |
| this | this connection |
| matrix_sln | global matrix |
Definition at line 417 of file SpatialModelConnection.f90.

|
private |
| this | this connection |
Definition at line 286 of file SpatialModelConnection.f90.
| 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 112 of file SpatialModelConnection.f90.


|
private |
| this | this connection |
Definition at line 622 of file SpatialModelConnection.f90.