MODFLOW 6  version 6.6.0.dev0
USGS Modular Hydrologic Model
timeseriesfilelistmodule Module Reference

Data Types

type  timeseriesfilelisttype
 

Functions/Subroutines

subroutine add (this, filename, iout, tsfile)
 
subroutine clear (this)
 
integer(i4b) function counttsfiles (this)
 
integer(i4b) function counttimeseries (this)
 
type(timeseriesfiletype) function, pointer gettsfile (this, indx)
 
subroutine add_time_series_tsfile (this, tsfile)
 
subroutine tsfl_da (this)
 

Function/Subroutine Documentation

◆ add()

subroutine timeseriesfilelistmodule::add ( class(timeseriesfilelisttype), intent(inout)  this,
character(len=*), intent(in)  filename,
integer(i4b), intent(in)  iout,
class(timeseriesfiletype), intent(inout), pointer  tsfile 
)
private

Definition at line 37 of file TimeSeriesFileList.f90.

38  implicit none
39  ! -- dummy
40  class(TimeSeriesFileListType), intent(inout) :: this
41  character(len=*), intent(in) :: filename
42  integer(I4B), intent(in) :: iout
43  class(TimeSeriesFileType), pointer, intent(inout) :: tsfile
44  ! -- local
45  type(TimeSeriesFileType), pointer :: tsf
46  !
47  ! -- Construct and initialize a new time-series tsfile
48  call constructtimeseriesfile(tsf)
49  tsfile => tsf
50  call tsfile%Initializetsfile(filename, iout, .true.)
51  !
52  ! -- Add the time-series tsfile to the list
53  call this%add_time_series_tsfile(tsfile)
Here is the call graph for this function:

◆ add_time_series_tsfile()

subroutine timeseriesfilelistmodule::add_time_series_tsfile ( class(timeseriesfilelisttype), intent(inout)  this,
class(timeseriesfiletype), intent(inout), pointer  tsfile 
)
private

Definition at line 108 of file TimeSeriesFileList.f90.

109  implicit none
110  ! -- dummy
111  class(TimeSeriesFileListType), intent(inout) :: this
112  class(TimeSeriesFileType), pointer, intent(inout) :: tsfile
113  !
114  call addtimeseriesfiletolist(this%tsfileList, tsfile)
115  this%numtsfiles = this%numtsfiles + 1
Here is the call graph for this function:

◆ clear()

subroutine timeseriesfilelistmodule::clear ( class(timeseriesfilelisttype), intent(inout)  this)
private

Definition at line 56 of file TimeSeriesFileList.f90.

57  implicit none
58  ! -- dummy
59  class(TimeSeriesFileListType), intent(inout) :: this
60  !
61  call this%tsfileList%Clear()

◆ counttimeseries()

integer(i4b) function timeseriesfilelistmodule::counttimeseries ( class(timeseriesfilelisttype this)
private

Definition at line 75 of file TimeSeriesFileList.f90.

76  implicit none
77  ! -- return
78  integer(I4B) :: CountTimeSeries
79  ! -- dummy
80  class(TimeSeriesFileListType) :: this
81  ! -- local
82  integer(I4B) :: i, numtsfiles
83  type(TimeSeriesFileType), pointer :: tsfile
84  !
85  numtsfiles = this%Counttsfiles()
86  counttimeseries = 0
87  do i = 1, numtsfiles
88  tsfile => this%Gettsfile(i)
89  if (associated(tsfile)) then
90  counttimeseries = counttimeseries + tsfile%Count()
91  end if
92  end do

◆ counttsfiles()

integer(i4b) function timeseriesfilelistmodule::counttsfiles ( class(timeseriesfilelisttype this)
private

Definition at line 64 of file TimeSeriesFileList.f90.

65  implicit none
66  ! -- return
67  integer(I4B) :: Counttsfiles
68  ! -- dummy
69  class(TimeSeriesFileListType) :: this
70  !
71  counttsfiles = this%tsfileList%Count()
72  !

◆ gettsfile()

type(timeseriesfiletype) function, pointer timeseriesfilelistmodule::gettsfile ( class(timeseriesfilelisttype this,
integer(i4b), intent(in)  indx 
)
private

Definition at line 95 of file TimeSeriesFileList.f90.

96  implicit none
97  ! -- dummy
98  class(TimeSeriesFileListType) :: this
99  integer(I4B), intent(in) :: indx
100  ! -- return
101  type(TimeSeriesFileType), pointer :: res
102  !
103  res => gettimeseriesfilefromlist(this%tsfileList, indx)
Here is the call graph for this function:

◆ tsfl_da()

subroutine timeseriesfilelistmodule::tsfl_da ( class(timeseriesfilelisttype), intent(inout)  this)
private

Definition at line 118 of file TimeSeriesFileList.f90.

119  ! -- dummy
120  class(TimeSeriesFileListType), intent(inout) :: this
121  ! -- local
122  integer(I4B) :: i, n
123  type(TimeSeriesFileType), pointer :: tsf => null()
124  !
125  n = this%Counttsfiles()
126  do i = 1, n
127  tsf => this%Gettsfile(i)
128  call tsf%da()
129  end do
130  !
131  call this%tsfileList%Clear(.true.)
132  !