MODFLOW 6  version 6.5.0.dev2
MODFLOW 6 Code Documentation
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)
54  !
55  ! -- Return
56  return
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 123 of file TimeSeriesFileList.f90.

124  implicit none
125  ! -- dummy
126  class(TimeSeriesFileListType), intent(inout) :: this
127  class(TimeSeriesFileType), pointer, intent(inout) :: tsfile
128  !
129  call addtimeseriesfiletolist(this%tsfileList, tsfile)
130  this%numtsfiles = this%numtsfiles + 1
131  !
132  ! -- Return
133  return
Here is the call graph for this function:

◆ clear()

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

Definition at line 59 of file TimeSeriesFileList.f90.

60  implicit none
61  ! -- dummy
62  class(TimeSeriesFileListType), intent(inout) :: this
63  !
64  call this%tsfileList%Clear()
65  !
66  ! -- Return
67  return

◆ counttimeseries()

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

Definition at line 84 of file TimeSeriesFileList.f90.

85  implicit none
86  ! -- return
87  integer(I4B) :: CountTimeSeries
88  ! -- dummy
89  class(TimeSeriesFileListType) :: this
90  ! -- local
91  integer(I4B) :: i, numtsfiles
92  type(TimeSeriesFileType), pointer :: tsfile
93  !
94  numtsfiles = this%Counttsfiles()
95  counttimeseries = 0
96  do i = 1, numtsfiles
97  tsfile => this%Gettsfile(i)
98  if (associated(tsfile)) then
99  counttimeseries = counttimeseries + tsfile%Count()
100  end if
101  end do
102  !
103  ! -- Return
104  return

◆ counttsfiles()

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

Definition at line 70 of file TimeSeriesFileList.f90.

71  implicit none
72  ! -- return
73  integer(I4B) :: Counttsfiles
74  ! -- dummy
75  class(TimeSeriesFileListType) :: this
76  !
77  counttsfiles = this%tsfileList%Count()
78  !
79  !
80  ! -- Return
81  return

◆ gettsfile()

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

Definition at line 107 of file TimeSeriesFileList.f90.

108  implicit none
109  ! -- dummy
110  class(TimeSeriesFileListType) :: this
111  integer(I4B), intent(in) :: indx
112  ! -- return
113  type(TimeSeriesFileType), pointer :: res
114  !
115  res => gettimeseriesfilefromlist(this%tsfileList, indx)
116  !
117  ! -- Return
118  return
Here is the call graph for this function:

◆ tsfl_da()

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

Definition at line 136 of file TimeSeriesFileList.f90.

137  ! -- dummy
138  class(TimeSeriesFileListType), intent(inout) :: this
139  ! -- local
140  integer(I4B) :: i, n
141  type(TimeSeriesFileType), pointer :: tsf => null()
142  !
143  n = this%Counttsfiles()
144  do i = 1, n
145  tsf => this%Gettsfile(i)
146  call tsf%da()
147  end do
148  !
149  call this%tsfileList%Clear(.true.)
150  !
151  !
152  ! -- Return
153  return