MODFLOW 6  version 6.8.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...
 
subroutine exg_ad (this)
 Advance. 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 109 of file BaseExchange.f90.

110  ! dummy
111  type(ListType), intent(inout) :: list
112  class(BaseExchangeType), pointer, intent(inout) :: exchange
113  ! local
114  class(*), pointer :: obj
115 
116  obj => exchange
117  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 93 of file BaseExchange.f90.

94  ! dummy
95  class(*), pointer, intent(inout) :: obj
96  ! return
97  class(BaseExchangeType), pointer :: res
98 
99  res => null()
100  if (.not. associated(obj)) return
101 
102  select type (obj)
103  class is (baseexchangetype)
104  res => obj
105  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 83 of file BaseExchange.f90.

84  ! dummy
85  class(BaseExchangeType) :: this !< the instance of the exchange
86  class(BaseModelType), pointer, intent(in) :: model !< the model to which the exchange might hold a connection
87  ! return
88  logical(LGP) :: is_connected !< true, when connected
89  is_connected = .false.

◆ exg_ad()

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

Definition at line 76 of file BaseExchange.f90.

77  class(BaseExchangeType) :: this

◆ exg_da()

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

Definition at line 71 of file BaseExchange.f90.

72  class(BaseExchangeType) :: this

◆ exg_dt()

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

Definition at line 56 of file BaseExchange.f90.

57  class(BaseExchangeType) :: this

◆ exg_fp()

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

Definition at line 66 of file BaseExchange.f90.

67  class(BaseExchangeType) :: this

◆ exg_ot()

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

Definition at line 61 of file BaseExchange.f90.

62  class(BaseExchangeType) :: this

◆ exg_rp()

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

Definition at line 51 of file BaseExchange.f90.

52  class(BaseExchangeType) :: this

◆ getbaseexchangefromlist()

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

Definition at line 121 of file BaseExchange.f90.

122  ! dummy
123  type(ListType), intent(inout) :: list
124  integer(I4B), intent(in) :: idx
125  class(BaseExchangeType), pointer :: res
126  ! local
127  class(*), pointer :: obj
128 
129  obj => list%GetItem(idx)
130  res => castasbaseexchangeclass(obj)
Here is the call graph for this function:
Here is the caller graph for this function: