MODFLOW 6  version 6.7.0.dev0
USGS Modular Hydrologic Model
celldefnmodule Module Reference

Data Types

type  celldefntype
 Base grid cell definition. More...
 

Functions/Subroutines

subroutine, public create_defn (cellDefn)
 Create a new cell definition object. More...
 
integer(i4b) function, public get_iatop (ncpl, icu)
 Get the index corresponding to top elevation of a cell in the grid. This is -1 if the cell is in the top layer and 1 otherwise. More...
 
logical(lgp) function get_ispv180 (this, m)
 Return 180-degree indicator for a vertex. More...
 
real(dp) function get_botflow (this)
 Return the bottom flow. More...
 
real(dp) function get_topflow (this)
 Return the top flow. More...
 
real(dp) function get_distflow (this)
 Return the distributed flow. More...
 
real(dp) function get_faceflow (this, m)
 Return a face flow. More...
 

Function/Subroutine Documentation

◆ create_defn()

subroutine, public celldefnmodule::create_defn ( type(celldefntype), pointer  cellDefn)

Definition at line 41 of file CellDefn.f90.

42  type(CellDefnType), pointer :: cellDefn
43  allocate (celldefn)
44  ! Initially, allocate arrays to size for structured grid tracking method.
45  ! They can be (lazily) expanded as necessary for the unstructured method.
46  allocate (celldefn%ispv180(5))
47  allocate (celldefn%facenbr(7))
48  allocate (celldefn%faceflow(7))
Here is the caller graph for this function:

◆ get_botflow()

real(dp) function celldefnmodule::get_botflow ( class(celldefntype), intent(inout)  this)
private

Definition at line 73 of file CellDefn.f90.

74  class(CellDefnType), intent(inout) :: this
75  real(DP) :: botflow
76  botflow = this%faceflow(this%npolyverts + 2)

◆ get_distflow()

real(dp) function celldefnmodule::get_distflow ( class(celldefntype), intent(inout)  this)
private

Definition at line 87 of file CellDefn.f90.

88  class(CellDefnType), intent(inout) :: this
89  real(DP) :: distflow
90  distflow = this%distflow

◆ get_faceflow()

real(dp) function celldefnmodule::get_faceflow ( class(celldefntype), intent(inout)  this,
integer(i4b)  m 
)
private

Definition at line 94 of file CellDefn.f90.

95  class(CellDefnType), intent(inout) :: this
96  integer(I4B) :: m
97  real(DP) :: faceflow
98  faceflow = this%faceflow(m)

◆ get_iatop()

integer(i4b) function, public celldefnmodule::get_iatop ( integer(i4b), intent(in)  ncpl,
integer(i4b), intent(in)  icu 
)

Definition at line 53 of file CellDefn.f90.

54  integer(I4B), intent(in) :: ncpl, icu
55  integer(I4B) :: iatop
56 
57  if (icu .le. ncpl) then
58  iatop = -1
59  else
60  iatop = 1
61  end if
Here is the caller graph for this function:

◆ get_ispv180()

logical(lgp) function celldefnmodule::get_ispv180 ( class(celldefntype), intent(inout)  this,
integer(i4b)  m 
)
private

Definition at line 65 of file CellDefn.f90.

66  class(CellDefnType), intent(inout) :: this
67  integer(I4B) :: m
68  logical(LGP) :: ispv180
69  ispv180 = this%ispv180(m)

◆ get_topflow()

real(dp) function celldefnmodule::get_topflow ( class(celldefntype), intent(inout)  this)
private

Definition at line 80 of file CellDefn.f90.

81  class(CellDefnType), intent(inout) :: this
82  real(DP) :: topflow
83  topflow = this%faceflow(this%npolyverts + 3)