MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
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 167 of file BaseSolution.f90.

168 implicit none
169 ! -- dummy
170 type(ListType), intent(inout) :: list
171 class(BaseSolutionType), pointer, intent(in) :: solution
172 ! -- local
173 class(*), pointer :: obj
174 !
175 obj => solution
176 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 153 of file BaseSolution.f90.

154 implicit none
155 class(*), pointer, intent(inout) :: obj
156 class(BaseSolutionType), pointer :: res
157 !
158 res => null()
159 if (.not. associated(obj)) return
160 !
161 select type (obj)
162 class is (basesolutiontype)
163 res => obj
164 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 179 of file BaseSolution.f90.

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