MODFLOW 6  version 6.5.0.dev2
MODFLOW 6 Code Documentation
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_calculate_delt (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 145 of file BaseExchange.f90.

146  ! -- dummy
147  type(ListType), intent(inout) :: list
148  class(BaseExchangeType), pointer, intent(inout) :: exchange
149  ! -- local
150  class(*), pointer :: obj
151  !
152  obj => exchange
153  call list%Add(obj)
154  !
155  ! -- Return
156  return
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 125 of file BaseExchange.f90.

126  ! -- dummy
127  class(*), pointer, intent(inout) :: obj
128  ! -- return
129  class(BaseExchangeType), pointer :: res
130  !
131  res => null()
132  if (.not. associated(obj)) return
133  !
134  select type (obj)
135  class is (baseexchangetype)
136  res => obj
137  end select
138  !
139  ! -- Return
140  return
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 110 of file BaseExchange.f90.

111  ! -- dummy
112  class(BaseExchangeType) :: this !< the instance of the exchange
113  class(BaseModelType), pointer, intent(in) :: model !< the model to which the exchange might hold a connection
114  ! -- return
115  logical(LGP) :: is_connected !< true, when connected
116  !
117  is_connected = .false.
118  !
119  ! -- Return
120  return

◆ exg_calculate_delt()

subroutine baseexchangemodule::exg_calculate_delt ( class(baseexchangetype this)

Definition at line 67 of file BaseExchange.f90.

68  ! -- dummy
69  class(BaseExchangeType) :: this
70  !
71  ! -- Nothing to do for TU
72  !
73  ! -- Return
74  return

◆ exg_da()

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

Definition at line 99 of file BaseExchange.f90.

100  ! -- dummy
101  class(BaseExchangeType) :: this
102  !
103  ! -- Return
104  return

◆ exg_fp()

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

Definition at line 89 of file BaseExchange.f90.

90  ! -- dummy
91  class(BaseExchangeType) :: this
92  !
93  ! -- Return
94  return

◆ exg_ot()

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

Definition at line 79 of file BaseExchange.f90.

80  ! -- dummy
81  class(BaseExchangeType) :: this
82  !
83  ! -- Return
84  return

◆ 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
60  !
61  ! -- Return
62  return
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 161 of file BaseExchange.f90.

162  ! -- dummy
163  type(ListType), intent(inout) :: list
164  integer(I4B), intent(in) :: idx
165  class(BaseExchangeType), pointer :: res
166  ! -- local
167  class(*), pointer :: obj
168  !
169  obj => list%GetItem(idx)
170  res => castasbaseexchangeclass(obj)
171  !
172  ! -- Return
173  return
Here is the call graph for this function:
Here is the caller graph for this function: