MODFLOW 6  version 6.7.0.dev2
USGS Modular Hydrologic Model
upstreamschememodule Module Reference

Data Types

interface  upstreamschemetype
 

Functions/Subroutines

type(upstreamschemetype) function constructor (dis, fmi)
 
type(coefficientstype) function compute (this, n, m, iposnm, phi)
 

Function/Subroutine Documentation

◆ compute()

type(coefficientstype) function upstreamschememodule::compute ( class(upstreamschemetype), target  this,
integer(i4b), intent(in)  n,
integer(i4b), intent(in)  m,
integer(i4b), intent(in)  iposnm,
real(dp), dimension(:), intent(in)  phi 
)
private

Definition at line 39 of file UpstreamScheme.f90.

40  !-- return
41  type(CoefficientsType) :: phi_face
42  ! -- dummy
43  class(UpstreamSchemeType), target :: this
44  integer(I4B), intent(in) :: n
45  integer(I4B), intent(in) :: m
46  integer(I4B), intent(in) :: iposnm
47  real(DP), intent(in), dimension(:) :: phi
48  ! -- local
49  real(DP) :: qnm
50 
51  ! -- Compute the coefficients for the upwind scheme
52  qnm = this%fmi%gwfflowja(iposnm)
53 
54  if (qnm < dzero) then
55  phi_face%c_n = 1.0_dp
56  else
57  phi_face%c_m = 1.0_dp
58  end if
59 

◆ constructor()

type(upstreamschemetype) function upstreamschememodule::constructor ( class(disbasetype), intent(in), pointer  dis,
type(tspfmitype), intent(in), pointer  fmi 
)
private

Definition at line 27 of file UpstreamScheme.f90.

28  ! -- return
29  type(UpstreamSchemeType) :: interpolation_scheme
30  ! --dummy
31  class(DisBaseType), pointer, intent(in) :: dis
32  type(TspFmiType), pointer, intent(in) :: fmi
33 
34  interpolation_scheme%dis => dis
35  interpolation_scheme%fmi => fmi
36 
Here is the caller graph for this function: