MODFLOW 6
version 6.6.0.dev0
USGS Modular Hydrologic Model
|
Data Types | |
type | connectionstype |
Functions/Subroutines | |
subroutine | con_da (this) |
Deallocate connection variables. More... | |
subroutine | allocate_scalars (this, name_model) |
Allocate scalars for ConnectionsType. More... | |
subroutine | allocate_arrays (this) |
Allocate arrays for ConnectionsType. More... | |
subroutine | con_finalize (this, ihctemp, cl12temp, hwvatemp, angldegx) |
Finalize connection data. More... | |
subroutine | read_connectivity_from_block (this, name_model, nodes, nja, iout) |
Read and process IAC and JA from an an input block called CONNECTIONDATA. More... | |
subroutine | set_cl1_cl2_from_fleng (this, fleng) |
Using a vector of cell lengths, calculate the cl1 and cl2 arrays. More... | |
subroutine | disconnections (this, name_model, nodes, ncol, nrow, nlay, nrsize, delr, delc, top, bot, nodereduced, nodeuser) |
Construct the connectivity arrays for a structured three-dimensional grid. More... | |
subroutine | disvconnections (this, name_model, nodes, ncpl, nlay, nrsize, nvert, vertex, iavert, javert, cellxy, top, bot, nodereduced, nodeuser) |
Construct the connectivity arrays using cell disv information. More... | |
subroutine | disuconnections (this, name_model, nodes, nodesuser, nrsize, nodereduced, nodeuser, iainp, jainp, ihcinp, cl12inp, hwvainp, angldegxinp, iangledegx) |
Construct the connectivity arrays using disu information. Grid may be reduced. More... | |
subroutine | disv1dconnections_verts (this, name_model, nodes, nodesuser, nrsize, nvert, vertices, iavert, javert, cellxy, cellfdc, nodereduced, nodeuser, reach_length) |
Fill the connections object for a disv1d package from vertices. More... | |
subroutine | fill_disv1d_symarrays (ia, ja, jas, cell_length, ihc, cl1, cl2, nrsize, nodereduced, nodeuser, fdc, iavert, javert, iavertcells, javertcells) |
Fill symmetric connection arrays for disv1d. More... | |
subroutine | iajausr (this, nrsize, nodesuser, nodereduced, nodeuser) |
Fill iausr and jausr if reduced grid, otherwise point them to ia and ja. More... | |
integer(i4b) function | getjaindex (this, node1, node2) |
Get the index in the JA array corresponding to the connection between two nodes of interest. More... | |
subroutine, public | fillisym (neq, nja, ia, ja, isym) |
Function to fill the isym array. More... | |
subroutine, public | filljas (neq, nja, ia, ja, isym, jas) |
Function to fill the jas array. More... | |
subroutine | vertexconnect (nodes, nrsize, maxnnz, nlay, ncpl, sparse, vertcellspm, cell1, cell2, nodereduced) |
Routine to make cell connections from vertices. More... | |
subroutine | vertexconnectl (nodes, nrsize, maxnnz, nodeuser, sparse, iavertcells, javertcells, nodereduced) |
Routine to make cell connections from vertices for a linear network. More... | |
subroutine | set_mask (this, ipos, maskval) |
routine to set a value in the mask array (which has the same shape as thisja) More... | |
subroutine, public | iac_to_ia (iac, ia) |
Convert an iac array into an ia array. More... | |
logical(lgp) function | connected_down_n (nu, mu, iavert, javert, iavertcells, javertcells) |
Is cell m is connected to the downstream end of cell n. More... | |
subroutine connectionsmodule::allocate_arrays | ( | class(connectionstype) | this | ) |
Definition at line 135 of file Connections.f90.
subroutine connectionsmodule::allocate_scalars | ( | class(connectionstype) | this, |
character(len=*), intent(in) | name_model | ||
) |
Definition at line 110 of file Connections.f90.
|
private |
Definition at line 61 of file Connections.f90.
subroutine connectionsmodule::con_finalize | ( | class(connectionstype) | this, |
integer(i4b), dimension(:), intent(in) | ihctemp, | ||
real(dp), dimension(:), intent(in) | cl12temp, | ||
real(dp), dimension(:), intent(in) | hwvatemp, | ||
real(dp), dimension(:), intent(in) | angldegx | ||
) |
Definition at line 160 of file Connections.f90.
|
private |
Definition at line 1477 of file Connections.f90.
subroutine connectionsmodule::disconnections | ( | class(connectionstype) | this, |
character(len=*), intent(in) | name_model, | ||
integer(i4b), intent(in) | nodes, | ||
integer(i4b), intent(in) | ncol, | ||
integer(i4b), intent(in) | nrow, | ||
integer(i4b), intent(in) | nlay, | ||
integer(i4b), intent(in) | nrsize, | ||
real(dp), dimension(ncol), intent(in) | delr, | ||
real(dp), dimension(nrow), intent(in) | delc, | ||
real(dp), dimension(nodes), intent(in) | top, | ||
real(dp), dimension(nodes), intent(in) | bot, | ||
integer(i4b), dimension(:), intent(in), target | nodereduced, | ||
integer(i4b), dimension(:), intent(in) | nodeuser | ||
) |
Definition at line 463 of file Connections.f90.
subroutine connectionsmodule::disuconnections | ( | class(connectionstype) | this, |
character(len=*), intent(in) | name_model, | ||
integer(i4b), intent(in) | nodes, | ||
integer(i4b), intent(in) | nodesuser, | ||
integer(i4b), intent(in) | nrsize, | ||
integer(i4b), dimension(:), intent(in), contiguous | nodereduced, | ||
integer(i4b), dimension(:), intent(in), contiguous | nodeuser, | ||
integer(i4b), dimension(:), intent(in), contiguous | iainp, | ||
integer(i4b), dimension(:), intent(in), contiguous | jainp, | ||
integer(i4b), dimension(:), intent(in), contiguous | ihcinp, | ||
real(dp), dimension(:), intent(in), contiguous | cl12inp, | ||
real(dp), dimension(:), intent(in), contiguous | hwvainp, | ||
real(dp), dimension(:), intent(in), contiguous | angldegxinp, | ||
integer(i4b), intent(in) | iangledegx | ||
) |
Definition at line 801 of file Connections.f90.
subroutine connectionsmodule::disv1dconnections_verts | ( | class(connectionstype) | this, |
character(len=*), intent(in) | name_model, | ||
integer(i4b), intent(in) | nodes, | ||
integer(i4b), intent(in) | nodesuser, | ||
integer(i4b), intent(in) | nrsize, | ||
integer(i4b), intent(in) | nvert, | ||
real(dp), dimension(3, nvert), intent(in) | vertices, | ||
integer(i4b), dimension(:), intent(in) | iavert, | ||
integer(i4b), dimension(:), intent(in) | javert, | ||
real(dp), dimension(2, nodesuser), intent(in) | cellxy, | ||
real(dp), dimension(nodesuser), intent(in) | cellfdc, | ||
integer(i4b), dimension(:), intent(in) | nodereduced, | ||
integer(i4b), dimension(:), intent(in) | nodeuser, | ||
real(dp), dimension(:), intent(in) | reach_length | ||
) |
Note that nothing is done for hwva
[in] | reach_length | length of each reach |
Definition at line 935 of file Connections.f90.
subroutine connectionsmodule::disvconnections | ( | class(connectionstype) | this, |
character(len=*), intent(in) | name_model, | ||
integer(i4b), intent(in) | nodes, | ||
integer(i4b), intent(in) | ncpl, | ||
integer(i4b), intent(in) | nlay, | ||
integer(i4b), intent(in) | nrsize, | ||
integer(i4b), intent(in) | nvert, | ||
real(dp), dimension(2, nvert), intent(in) | vertex, | ||
integer(i4b), dimension(:), intent(in) | iavert, | ||
integer(i4b), dimension(:), intent(in) | javert, | ||
real(dp), dimension(2, ncpl), intent(in) | cellxy, | ||
real(dp), dimension(nodes), intent(in) | top, | ||
real(dp), dimension(nodes), intent(in) | bot, | ||
integer(i4b), dimension(:), intent(in) | nodereduced, | ||
integer(i4b), dimension(:), intent(in) | nodeuser | ||
) |
Definition at line 702 of file Connections.f90.
subroutine connectionsmodule::fill_disv1d_symarrays | ( | integer(i4b), dimension(:), intent(in) | ia, |
integer(i4b), dimension(:), intent(in) | ja, | ||
integer(i4b), dimension(:), intent(in) | jas, | ||
real(dp), dimension(:), intent(in) | cell_length, | ||
integer(i4b), dimension(:), intent(out) | ihc, | ||
real(dp), dimension(:), intent(out) | cl1, | ||
real(dp), dimension(:), intent(out) | cl2, | ||
integer(i4b), intent(in) | nrsize, | ||
integer(i4b), dimension(:), intent(in) | nodereduced, | ||
integer(i4b), dimension(:), intent(in) | nodeuser, | ||
real(dp), dimension(:), intent(in) | fdc, | ||
integer(i4b), dimension(:), intent(in) | iavert, | ||
integer(i4b), dimension(:), intent(in) | javert, | ||
integer(i4b), dimension(:), intent(in) | iavertcells, | ||
integer(i4b), dimension(:), intent(in) | javertcells | ||
) |
[in] | ia | csr pointer array |
[in] | ja | csr array |
[in] | jas | csr symmetric array |
[in] | cell_length | length of each cell (all cells) |
[out] | ihc | horizontal connection flag |
[out] | cl1 | distance from n to shared face with m |
[out] | cl2 | distance from m to shared face with n |
[in] | nrsize | great than zero indicated reduced nodes present |
[in] | nodereduced | map user node to reduced node number |
[in] | nodeuser | map user reduced node to user node number |
[in] | fdc | fractional distance along cell to reach cell center |
Definition at line 1030 of file Connections.f90.
subroutine, public connectionsmodule::fillisym | ( | integer(i4b), intent(in) | neq, |
integer(i4b), intent(in) | nja, | ||
integer(i4b), dimension(neq + 1), intent(in) | ia, | ||
integer(i4b), dimension(nja), intent(in) | ja, | ||
integer(i4b), dimension(nja), intent(inout) | isym | ||
) |
subroutine, public connectionsmodule::filljas | ( | integer(i4b), intent(in) | neq, |
integer(i4b), intent(in) | nja, | ||
integer(i4b), dimension(neq + 1), intent(in) | ia, | ||
integer(i4b), dimension(nja), intent(in) | ja, | ||
integer(i4b), dimension(nja), intent(in) | isym, | ||
integer(i4b), dimension(nja), intent(inout) | jas | ||
) |
integer(i4b) function connectionsmodule::getjaindex | ( | class(connectionstype) | this, |
integer(i4b), intent(in) | node1, | ||
integer(i4b), intent(in) | node2 | ||
) |
Node1 is used as the index in the IA array, and IA(Node1) is the row index in the (nodes x nodes) matrix represented by the compressed sparse row format.
-1 is returned if either node number is invalid. 0 is returned if the two nodes are not connected.
Definition at line 1168 of file Connections.f90.
subroutine, public connectionsmodule::iac_to_ia | ( | integer(i4b), dimension(:), intent(in), pointer, contiguous | iac, |
integer(i4b), dimension(:), intent(inout), contiguous | ia | ||
) |
|
private |
Definition at line 1112 of file Connections.f90.
subroutine connectionsmodule::read_connectivity_from_block | ( | class(connectionstype) | this, |
character(len=*), intent(in) | name_model, | ||
integer(i4b), intent(in) | nodes, | ||
integer(i4b), intent(in) | nja, | ||
integer(i4b), intent(in) | iout | ||
) |
subroutine connectionsmodule::set_cl1_cl2_from_fleng | ( | class(connectionstype) | this, |
real(dp), dimension(:), intent(in) | fleng | ||
) |
Definition at line 441 of file Connections.f90.
subroutine connectionsmodule::set_mask | ( | class(connectionstype) | this, |
integer(i4b), intent(in) | ipos, | ||
integer(i4b), intent(in) | maskval | ||
) |
Definition at line 1427 of file Connections.f90.
|
private |
Definition at line 1272 of file Connections.f90.
subroutine connectionsmodule::vertexconnectl | ( | integer(i4b), intent(in) | nodes, |
integer(i4b), intent(in) | nrsize, | ||
integer(i4b), intent(in) | maxnnz, | ||
integer(i4b), intent(in) | nodeuser, | ||
type(sparsematrix), intent(inout) | sparse, | ||
integer(i4b), dimension(:), intent(in) | iavertcells, | ||
integer(i4b), dimension(:), intent(in) | javertcells, | ||
integer(i4b), dimension(:), intent(in) | nodereduced | ||
) |
[in] | nodes | number of active nodes |
[in] | nrsize | if > 0 then reduced grid |
[in] | maxnnz | max number of non zeros |
[in] | nodeuser | number of user nodes |
[in,out] | sparse | sparse matrix object |
[in] | nodereduced | map from user to reduced node |
[in] | iavertcells | csr ia index array for vertices |
[in] | javertcells | csr list of cells that use each vertex |
Definition at line 1366 of file Connections.f90.