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

Data Types

type  basesolutiontype
 
interface  sln_df
 
interface  slnaddexchange
 
interface  assignConnectionsIFace
 
interface  sln_ar
 
interface  sln_rp
 
interface  sln_dt
 
interface  sln_ad
 
interface  sln_ot
 
interface  sln_ca
 
interface  slnsave
 
interface  slnaddmodel
 
interface  slngetmodels
 
interface  slngetexchanges
 
interface  sln_fp
 
interface  sln_da
 
interface  prepareSolve
 
interface  solve
 
interface  finalizeSolve
 

Functions/Subroutines

class(basesolutiontype) function, pointer, private castasbasesolutionclass (obj)
 
subroutine, public addbasesolutiontolist (list, solution)
 
class(basesolutiontype) function, pointer, public getbasesolutionfromlist (list, idx)
 

Function/Subroutine Documentation

◆ addbasesolutiontolist()

subroutine, public basesolutionmodule::addbasesolutiontolist ( type(listtype), intent(inout)  list,
class(basesolutiontype), intent(in), pointer  solution 
)

Definition at line 166 of file BaseSolution.f90.

167  implicit none
168  ! -- dummy
169  type(ListType), intent(inout) :: list
170  class(BaseSolutionType), pointer, intent(in) :: solution
171  ! -- local
172  class(*), pointer :: obj
173  !
174  obj => solution
175  call list%Add(obj)
Here is the caller graph for this function:

◆ castasbasesolutionclass()

class(basesolutiontype) function, pointer, private basesolutionmodule::castasbasesolutionclass ( class(*), intent(inout), pointer  obj)
private

Definition at line 152 of file BaseSolution.f90.

153  implicit none
154  class(*), pointer, intent(inout) :: obj
155  class(BaseSolutionType), pointer :: res
156  !
157  res => null()
158  if (.not. associated(obj)) return
159  !
160  select type (obj)
161  class is (basesolutiontype)
162  res => obj
163  end select
Here is the caller graph for this function:

◆ getbasesolutionfromlist()

class(basesolutiontype) function, pointer, public basesolutionmodule::getbasesolutionfromlist ( type(listtype), intent(inout)  list,
integer(i4b), intent(in)  idx 
)

Definition at line 178 of file BaseSolution.f90.

179  implicit none
180  ! -- dummy
181  type(ListType), intent(inout) :: list
182  integer(I4B), intent(in) :: idx
183  class(BaseSolutionType), pointer :: res
184  ! -- local
185  class(*), pointer :: obj
186  !
187  obj => list%GetItem(idx)
188  res => castasbasesolutionclass(obj)
Here is the call graph for this function:
Here is the caller graph for this function: