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

Data Types

type  baseexchangetype
 
interface  exg_df
 
interface  exg_ar
 

Functions/Subroutines

subroutine exg_rp (this)
 Read and prepare. More...
 
subroutine exg_dt (this)
 Calculate time step length. More...
 
subroutine exg_ot (this)
 Run output routines. More...
 
subroutine exg_fp (this)
 Final processing. More...
 
subroutine exg_da (this)
 Deallocate memory. More...
 
logical(lgp) function connects_model (this, model)
 Should return true when the exchange should be added to the solution where the model resides. More...
 
class(baseexchangetype) function, pointer, private castasbaseexchangeclass (obj)
 Cast the object passed in as BaseExchangeType and return it. More...
 
subroutine, public addbaseexchangetolist (list, exchange)
 Add the exchange object (BaseExchangeType) to a list. More...
 
class(baseexchangetype) function, pointer, public getbaseexchangefromlist (list, idx)
 Retrieve a specific BaseExchangeType object from a list. More...
 

Function/Subroutine Documentation

◆ addbaseexchangetolist()

subroutine, public baseexchangemodule::addbaseexchangetolist ( type(listtype), intent(inout)  list,
class(baseexchangetype), intent(inout), pointer  exchange 
)

Definition at line 124 of file BaseExchange.f90.

125  ! -- dummy
126  type(ListType), intent(inout) :: list
127  class(BaseExchangeType), pointer, intent(inout) :: exchange
128  ! -- local
129  class(*), pointer :: obj
130  !
131  obj => exchange
132  call list%Add(obj)
Here is the caller graph for this function:

◆ castasbaseexchangeclass()

class(baseexchangetype) function, pointer, private baseexchangemodule::castasbaseexchangeclass ( class(*), intent(inout), pointer  obj)
private

Definition at line 107 of file BaseExchange.f90.

108  ! -- dummy
109  class(*), pointer, intent(inout) :: obj
110  ! -- return
111  class(BaseExchangeType), pointer :: res
112  !
113  res => null()
114  if (.not. associated(obj)) return
115  !
116  select type (obj)
117  class is (baseexchangetype)
118  res => obj
119  end select
Here is the caller graph for this function:

◆ connects_model()

logical(lgp) function baseexchangemodule::connects_model ( class(baseexchangetype this,
class(basemodeltype), intent(in), pointer  model 
)
private
Parameters
thisthe instance of the exchange
[in]modelthe model to which the exchange might hold a connection
Returns
true, when connected

Definition at line 95 of file BaseExchange.f90.

96  ! -- dummy
97  class(BaseExchangeType) :: this !< the instance of the exchange
98  class(BaseModelType), pointer, intent(in) :: model !< the model to which the exchange might hold a connection
99  ! -- return
100  logical(LGP) :: is_connected !< true, when connected
101  !
102  is_connected = .false.

◆ exg_da()

subroutine baseexchangemodule::exg_da ( class(baseexchangetype this)
private

Definition at line 87 of file BaseExchange.f90.

88  ! -- dummy
89  class(BaseExchangeType) :: this

◆ exg_dt()

subroutine baseexchangemodule::exg_dt ( class(baseexchangetype this)

Definition at line 64 of file BaseExchange.f90.

65  ! -- dummy
66  class(BaseExchangeType) :: this
67  !
68  ! -- Nothing to do for TU

◆ exg_fp()

subroutine baseexchangemodule::exg_fp ( class(baseexchangetype this)
private

Definition at line 80 of file BaseExchange.f90.

81  ! -- dummy
82  class(BaseExchangeType) :: this

◆ exg_ot()

subroutine baseexchangemodule::exg_ot ( class(baseexchangetype this)
private

Definition at line 73 of file BaseExchange.f90.

74  ! -- dummy
75  class(BaseExchangeType) :: this

◆ exg_rp()

subroutine baseexchangemodule::exg_rp ( class(baseexchangetype this)
private

Definition at line 50 of file BaseExchange.f90.

51  ! -- modules
52  use tdismodule, only: readnewdata
53  ! -- dummy
54  class(BaseExchangeType) :: this
55  !
56  ! -- Check with TDIS on whether or not it is time to RP
57  if (.not. readnewdata) return
58  !
59  ! -- Nothing to do for RP
logical(lgp), pointer, public readnewdata
flag indicating time to read new data
Definition: tdis.f90:26

◆ getbaseexchangefromlist()

class(baseexchangetype) function, pointer, public baseexchangemodule::getbaseexchangefromlist ( type(listtype), intent(inout)  list,
integer(i4b), intent(in)  idx 
)

Definition at line 137 of file BaseExchange.f90.

138  ! -- dummy
139  type(ListType), intent(inout) :: list
140  integer(I4B), intent(in) :: idx
141  class(BaseExchangeType), pointer :: res
142  ! -- local
143  class(*), pointer :: obj
144  !
145  obj => list%GetItem(idx)
146  res => castasbaseexchangeclass(obj)
Here is the call graph for this function:
Here is the caller graph for this function: