MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
timeserieslinkmodule Module Reference

Data Types

type  timeserieslinktype

Functions/Subroutines

subroutine, public constructtimeserieslink (newtslink, timeseries, pkgname, auxorbnd, bndelem, irow, jcol, iprpak, text)
 Construct time series link.
type(timeserieslinktype) function, pointer, private castastimeserieslinktype (obj)
 Cast an unlimited polymorphic object as TimeSeriesLinkType.
type(timeserieslinktype) function, pointer, public gettimeserieslinkfromlist (list, indx)
 Get time series link from a list.
subroutine, public addtimeserieslinktolist (list, tslink)
 Add time series link to a list.

Function/Subroutine Documentation

◆ addtimeserieslinktolist()

subroutine, public timeserieslinkmodule::addtimeserieslinktolist ( type(listtype), intent(inout) list,
type(timeserieslinktype), intent(inout), pointer tslink )

Definition at line 115 of file TimeSeriesLink.f90.

116 implicit none
117 ! -- dummy
118 type(ListType), intent(inout) :: list
119 type(TimeSeriesLinkType), pointer, intent(inout) :: tslink
120 ! -- local
121 class(*), pointer :: obj
122 !
123 obj => tslink
124 call list%Add(obj)
Here is the caller graph for this function:

◆ castastimeserieslinktype()

type(timeserieslinktype) function, pointer, private timeserieslinkmodule::castastimeserieslinktype ( class(*), intent(inout), pointer obj)
private

Definition at line 78 of file TimeSeriesLink.f90.

79 implicit none
80 ! -- dummy
81 class(*), pointer, intent(inout) :: obj
82 ! -- return
83 type(TimeSeriesLinkType), pointer :: res
84 !
85 res => null()
86 if (.not. associated(obj)) return
87 !
88 select type (obj)
89 type is (timeserieslinktype)
90 res => obj
91 class default
92 continue
93 end select
Here is the caller graph for this function:

◆ constructtimeserieslink()

subroutine, public timeserieslinkmodule::constructtimeserieslink ( type(timeserieslinktype), intent(out), pointer newtslink,
type(timeseriestype), intent(in), pointer timeseries,
character(len=*), intent(in) pkgname,
character(len=3), intent(in) auxorbnd,
real(dp), intent(in), pointer bndelem,
integer(i4b), intent(in) irow,
integer(i4b), intent(in) jcol,
integer(i4b), intent(in) iprpak,
character(len=*), optional text )

Definition at line 42 of file TimeSeriesLink.f90.

45 implicit none
46 ! -- dummy
47 type(TimeSeriesLinkType), pointer, intent(out) :: newTsLink
48 type(TimeSeriesType), pointer, intent(in) :: timeSeries
49 integer(I4B), intent(in) :: iRow, jCol
50 character(len=*), intent(in) :: pkgName
51 character(len=3), intent(in) :: auxOrBnd
52 real(DP), pointer, intent(in) :: bndElem
53 integer(I4B), intent(in) :: iprpak
54 character(len=*), optional :: text
55 ! -- local
56 character(len=LENPACKAGENAME) :: pkgNameTemp
57 !
58 allocate (newtslink)
59 !
60 ! Store package name as all caps
61 pkgnametemp = pkgname
62 call upcase(pkgnametemp)
63 newtslink%PackageName = pkgnametemp
64 newtslink%AuxOrBnd = auxorbnd
65 newtslink%timeSeries => timeseries
66 newtslink%iRow = irow
67 newtslink%jCol = jcol
68 newtslink%BndElement => bndelem
69 newtslink%Iprpak = iprpak
70 !
71 if (present(text)) then
72 newtslink%Text = text
73 end if
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gettimeserieslinkfromlist()

type(timeserieslinktype) function, pointer, public timeserieslinkmodule::gettimeserieslinkfromlist ( type(listtype), intent(inout) list,
integer(i4b), intent(in) indx )

Definition at line 98 of file TimeSeriesLink.f90.

99 implicit none
100 ! -- dummy
101 type(ListType), intent(inout) :: list
102 integer(I4B), intent(in) :: indx
103 ! -- return
104 type(TimeSeriesLinkType), pointer :: tsLink
105 ! -- local
106 class(*), pointer :: obj
107 !
108 tslink => null()
109 obj => list%GetItem(indx)
110 tslink => castastimeserieslinktype(obj)
Here is the call graph for this function:
Here is the caller graph for this function: