MODFLOW 6  version 6.5.0.dev2
MODFLOW 6 Code Documentation
distvariablemodule Module Reference

Data Types

type  distvartype
 

Functions/Subroutines

class(distvartype) function, pointer, public getdistvarfromlist (list, idx)
 
class(distvartype) function, pointer castasdistvar (obj)
 

Variables

integer(i4b), parameter, public sync_scl = 0
 synchronize as scalar More...
 
integer(i4b), parameter, public sync_nds = 1
 synchronize over nodes More...
 
integer(i4b), parameter, public sync_con = 2
 synchronize over connections More...
 
integer(i4b), parameter, public sync_exg = 3
 synchronize as exchange variable More...
 

Function/Subroutine Documentation

◆ castasdistvar()

class(distvartype) function, pointer distvariablemodule::castasdistvar ( class(*), intent(inout), pointer  obj)
private

Definition at line 44 of file DistributedVariable.f90.

45  implicit none
46  class(*), pointer, intent(inout) :: obj
47  class(DistVarType), pointer :: res
48 
49  res => null()
50  if (.not. associated(obj)) return
51 
52  select type (obj)
53  class is (distvartype)
54  res => obj
55  end select
56  return
Here is the caller graph for this function:

◆ getdistvarfromlist()

class(distvartype) function, pointer, public distvariablemodule::getdistvarfromlist ( type(listtype), intent(inout)  list,
integer(i4b), intent(in)  idx 
)

Definition at line 30 of file DistributedVariable.f90.

31  implicit none
32  type(ListType), intent(inout) :: list
33  integer(I4B), intent(in) :: idx
34  class(DistVarType), pointer :: res
35  ! local
36  class(*), pointer :: obj
37 
38  obj => list%GetItem(idx)
39  res => castasdistvar(obj)
40  return
41 
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ sync_con

integer(i4b), parameter, public distvariablemodule::sync_con = 2

Definition at line 15 of file DistributedVariable.f90.

15  integer(I4B), public, parameter :: SYNC_CON = 2 !< synchronize over connections

◆ sync_exg

integer(i4b), parameter, public distvariablemodule::sync_exg = 3

Definition at line 16 of file DistributedVariable.f90.

16  integer(I4B), public, parameter :: SYNC_EXG = 3 !< synchronize as exchange variable

◆ sync_nds

integer(i4b), parameter, public distvariablemodule::sync_nds = 1

Definition at line 14 of file DistributedVariable.f90.

14  integer(I4B), public, parameter :: SYNC_NDS = 1 !< synchronize over nodes

◆ sync_scl

integer(i4b), parameter, public distvariablemodule::sync_scl = 0

Definition at line 13 of file DistributedVariable.f90.

13  integer(I4B), public, parameter :: SYNC_SCL = 0 !< synchronize as scalar