MODFLOW 6  version 6.7.0.dev0
USGS Modular Hydrologic Model
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. More...
 
type(timeserieslinktype) function, pointer, private castastimeserieslinktype (obj)
 Cast an unlimited polymorphic object as TimeSeriesLinkType. More...
 
type(timeserieslinktype) function, pointer, public gettimeserieslinkfromlist (list, indx)
 Get time series link from a list. More...
 
subroutine, public addtimeserieslinktolist (list, tslink)
 Add time series link to a list. More...
 

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: