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

Data Types

type  timeseriesrecordtype
 

Functions/Subroutines

subroutine, public constructtimeseriesrecord (newTsRecord, time, value)
 Allocate and assign members of a new TimeSeriesRecordType object. More...
 
type(timeseriesrecordtype) function, pointer, public castastimeseriesrecordtype (obj)
 Cast an unlimited polymorphic object as TimeSeriesRecordType. More...
 
subroutine, public addtimeseriesrecordtolist (list, tsrecord)
 Add time series record to list. More...
 

Function/Subroutine Documentation

◆ addtimeseriesrecordtolist()

subroutine, public timeseriesrecordmodule::addtimeseriesrecordtolist ( type(listtype), intent(inout)  list,
type(timeseriesrecordtype), intent(inout), pointer  tsrecord 
)

Definition at line 51 of file TimeSeriesRecord.f90.

52  implicit none
53  ! -- dummy
54  type(ListType), intent(inout) :: list
55  type(TimeSeriesRecordType), pointer, intent(inout) :: tsrecord
56  ! -- local
57  class(*), pointer :: obj => null()
58  !
59  obj => tsrecord
60  call list%Add(obj)
Here is the caller graph for this function:

◆ castastimeseriesrecordtype()

type(timeseriesrecordtype) function, pointer, public timeseriesrecordmodule::castastimeseriesrecordtype ( class(*), intent(inout), pointer  obj)

Definition at line 33 of file TimeSeriesRecord.f90.

34  implicit none
35  ! -- dummy
36  class(*), pointer, intent(inout) :: obj
37  ! -- return
38  type(TimeSeriesRecordType), pointer :: res
39  !
40  res => null()
41  if (.not. associated(obj)) return
42  !
43  select type (obj)
44  type is (timeseriesrecordtype)
45  res => obj
46  end select
Here is the caller graph for this function:

◆ constructtimeseriesrecord()

subroutine, public timeseriesrecordmodule::constructtimeseriesrecord ( type(timeseriesrecordtype), intent(out), pointer  newTsRecord,
real(dp), intent(in)  time,
real(dp), intent(in)  value 
)

Definition at line 20 of file TimeSeriesRecord.f90.

21  implicit none
22  ! -- dummy
23  type(TimeSeriesRecordType), pointer, intent(out) :: newTsRecord
24  real(DP), intent(in) :: time, value
25  !
26  allocate (newtsrecord)
27  newtsrecord%tsrTime = time
28  newtsrecord%tsrValue = value
Here is the caller graph for this function: