This involves several tasks: first, advance the time selection. Then, if period-block release setting lines are provided, reinitialize the time step selection for the given period. Finally, refresh the schedule array, deduplicating any times closer than the set tolerance.
108 class(ParticleReleaseScheduleType), intent(inout) :: this
109 character(len=LINELENGTH), intent(in), optional :: lines(:)
110 integer(I4B) :: it, i
111 real(DP) :: tprevious
112 real(DP) :: trelease
113
114
115 call this%time_select%advance()
116
117
118
119 if (present(lines)) then
120 call this%step_select%init()
121 do i = 1, size(lines)
122 call this%step_select%read(lines(i))
123 end do
124 end if
125
126
127 if (allocated(this%times)) deallocate (this%times)
128 allocate (this%times(0))
129
130 tprevious = -done
131 trelease = -done
132
133
134
135
138 if (.not. this%time_select%contains_close(trelease, this%tolerance)) then
139 call this%schedule(trelease)
140 tprevious = trelease
141 end if
142 end if
143
144
145
146 if (this%time_select%any()) then
147 do it = this%time_select%selection(1), this%time_select%selection(2)
148 trelease = this%time_select%times(it)
149 if (tprevious >= dzero .and. is_close( &
150 tprevious, &
151 trelease, &
152 atol=this%tolerance)) cycle
153
154 call this%schedule(trelease)
155 tprevious = trelease
156 end do
157 end if
logical(lgp), pointer, public endofperiod
flag indicating end of stress period
real(dp), pointer, public totimc
simulation time at start of time step
integer(i4b), pointer, public kstp
current time step number