MODFLOW 6  version 6.7.0.dev0
USGS Modular Hydrologic Model
GridConnection.f90 File Reference

Go to the source code of this file.

Data Types

type  gridconnectionmodule::gridconnectiontype
 This class is used to construct the connections object for the interface model's spatial discretization/grid. More...
 

Modules

module  gridconnectionmodule
 Refactoring issues towards parallel:
 

Functions/Subroutines

subroutine gridconnectionmodule::construct (this, model, nrOfPrimaries, connectionName)
 Construct the GridConnection and allocate the data structures for the primary connections. More...
 
subroutine gridconnectionmodule::connectprimaryexchange (this, primEx)
 Make connections for the primary exchange. More...
 
subroutine gridconnectionmodule::connectcell (this, idx1, v_model1, idx2, v_model2)
 Connect neighboring cells at the interface by storing them in the boundary cell and connected cell arrays. More...
 
subroutine gridconnectionmodule::addtoregionalmodels (this, v_model)
 Add a model to a list of all regional models. More...
 
subroutine gridconnectionmodule::extendconnection (this)
 Extend the connection topology to deal with higher levels of connectivity (neighbors-of-neighbors, etc.) More...
 
subroutine gridconnectionmodule::buildconnections (this)
 Builds a sparse matrix holding all cell connections,. More...
 
recursive subroutine gridconnectionmodule::addneighbors (this, cellNbrs, depth, mask, interior)
 
subroutine gridconnectionmodule::addremoteneighbors (this, cellNbrs, mask)
 Add cell neighbors across models using the stored exchange data structures. More...
 
subroutine gridconnectionmodule::addneighborcell (this, cellNbrs, newNbrIdx, v_nbr_model, mask)
 Add neighboring cell to tree structure. More...
 
recursive subroutine gridconnectionmodule::registerinterfacecells (this, cellWithNbrs)
 Recursively set interface cell indexes and. More...
 
subroutine gridconnectionmodule::addtoglobalmap (this, ifaceIdx, cell)
 Add entry to lookup table, inflating when necessary. More...
 
subroutine gridconnectionmodule::compressglobalmap (this)
 Compress lookup table to get rid of unused entries. More...
 
subroutine gridconnectionmodule::sortinterfacegrid (this)
 Soft cell ids in the interface grid such that. More...
 
subroutine gridconnectionmodule::makeprimaryconnections (this, sparse)
 Add primary connections to the sparse data structure. More...
 
recursive subroutine gridconnectionmodule::connectneighborcells (this, cell, sparse)
 Recursively add higher order connections (from cells neighboring the primarily connected cells) to the. More...
 
subroutine gridconnectionmodule::fillconnectiondatainternal (this)
 Fill connection data (ihc, cl1, ...) for. More...
 
subroutine gridconnectionmodule::fillconnectiondatafromexchanges (this)
 Fill connection data (ihc, cl1, ...) for. More...
 
subroutine gridconnectionmodule::createconnectionmask (this)
 Create the connection masks. More...
 
recursive subroutine gridconnectionmodule::maskinternalconnections (this, cell, nbrCell, level)
 Recursively mask connections, increasing the level as we go. More...
 
subroutine gridconnectionmodule::setmaskonconnection (this, cell, nbrCell, level)
 Set a mask on the connection from a cell to its neighbor, (and not the transposed!) not overwriting the current level. More...
 
integer(i4b) function gridconnectionmodule::getinterfaceindexbycell (this, cell)
 Get interface index from global cell. More...
 
integer(i4b) function gridconnectionmodule::getinterfaceindexbyindexmodel (this, index, v_model)
 Get interface index from a model pointer and the local index. More...
 
integer(i4b) function gridconnectionmodule::get_regional_offset (this, v_model)
 Get the offset for a regional model. More...
 
subroutine gridconnectionmodule::allocatescalars (this)
 Allocate scalar data. More...
 
subroutine gridconnectionmodule::getdiscretization (this, disu)
 Sets the discretization (DISU) after all preprocessing by this grid connection has been done,. More...
 
subroutine gridconnectionmodule::buildinterfacemap (this)
 Build interface map object for outside use. More...
 
subroutine gridconnectionmodule::destroy (this)
 Deallocate grid connection resources. More...
 
logical function gridconnectionmodule::isperiodic (this, n, m)
 Test if the connection between nodes within. More...
 

Variables

integer(i4b), parameter gridconnectionmodule::initnrneighbors = 7