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

Data Types

type  basesolutiontype
 
interface  sln_df
 
interface  slnaddexchange
 
interface  assignConnectionsIFace
 
interface  sln_ar
 
interface  sln_rp
 
interface  sln_calculate_delt
 
interface  sln_ad
 
interface  sln_ot
 
interface  sln_ca
 
interface  slnsave
 
interface  slnaddmodel
 
interface  slngetmodels
 
interface  slngetexchanges
 
interface  sln_fp
 
interface  sln_da
 

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 141 of file BaseSolution.f90.

142  implicit none
143  ! -- dummy
144  type(ListType), intent(inout) :: list
145  class(BaseSolutionType), pointer, intent(in) :: solution
146  ! -- local
147  class(*), pointer :: obj
148  !
149  obj => solution
150  call list%Add(obj)
151  !
152  return
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 126 of file BaseSolution.f90.

127  implicit none
128  class(*), pointer, intent(inout) :: obj
129  class(BaseSolutionType), pointer :: res
130  !
131  res => null()
132  if (.not. associated(obj)) return
133  !
134  select type (obj)
135  class is (basesolutiontype)
136  res => obj
137  end select
138  return
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 155 of file BaseSolution.f90.

156  implicit none
157  ! -- dummy
158  type(ListType), intent(inout) :: list
159  integer(I4B), intent(in) :: idx
160  class(BaseSolutionType), pointer :: res
161  ! -- local
162  class(*), pointer :: obj
163  !
164  obj => list%GetItem(idx)
165  res => castasbasesolutionclass(obj)
166  !
167  return
Here is the call graph for this function:
Here is the caller graph for this function: