MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
adaptivetimestepmodule Module Reference

Data Types

type  atstype

Functions/Subroutines

logical(lgp) function isadaptiveperiod (this, kper)
 Determine if period is adaptive.
subroutine ats_init (this, inunit, nper_tdis)
 Create ATS object.
subroutine ats_allocate_scalars (this)
 Allocate scalars.
subroutine ats_allocate_arrays (this)
 Allocate arrays.
subroutine ats_da (this)
 Deallocate variables.
subroutine ats_read_options (this)
 Read options.
subroutine ats_read_dimensions (this)
 Read dimensions.
subroutine ats_read_timing (this)
 Read timing.
subroutine ats_process_input (this)
 Process input.
subroutine ats_input_table (this)
 Write input table.
subroutine ats_check_timing (this)
 Check timing.
subroutine ats_period_message (this, kper)
 Write period message.
subroutine ats_submit_delt (this, kstp, kper, dt, sloc, idir)
 Allow and external caller to submit preferred time step.
subroutine ats_set_delt (this, kstp, kper, pertim, perlencurrent, delt)
 Set time step.
subroutine ats_reset_delt (this, kstp, kper, laststepfailed, delt, finishedtrying)
 Reset time step because failure has occurred.
subroutine ats_set_endofperiod (this, kper, pertim, perlencurrent, endofperiod)
 Set end of period indicator.

Function/Subroutine Documentation

◆ ats_allocate_arrays()

subroutine adaptivetimestepmodule::ats_allocate_arrays ( class(atstype) this)
private

Allocate and initialize arrays for the ATS package.

Definition at line 148 of file ats.f90.

149 ! -- modules
151 ! -- dummy
152 class(AtsType) :: this
153 ! -- local
154 integer(I4B) :: n
155 !
156 call mem_allocate(this%kperats, this%nper, 'KPERATS', 'ATS')
157 call mem_allocate(this%iperats, this%maxats, 'IPERATS', 'ATS')
158 call mem_allocate(this%dt0, this%maxats, 'DT0', 'ATS')
159 call mem_allocate(this%dtmin, this%maxats, 'DTMIN', 'ATS')
160 call mem_allocate(this%dtmax, this%maxats, 'DTMAX', 'ATS')
161 call mem_allocate(this%dtadj, this%maxats, 'DTADJ', 'ATS')
162 call mem_allocate(this%dtfailadj, this%maxats, 'DTFAILADJ', 'ATS')
163 !
164 ! -- initialize kperats
165 do n = 1, this%nper
166 this%kperats(n) = 0
167 end do
168 !
169 ! -- initialize
170 do n = 1, this%maxats
171 this%iperats(n) = 0
172 this%dt0(n) = dzero
173 this%dtmin(n) = dzero
174 this%dtmax(n) = dzero
175 this%dtadj(n) = dzero
176 this%dtfailadj(n) = dzero
177 end do

◆ ats_allocate_scalars()

subroutine adaptivetimestepmodule::ats_allocate_scalars ( class(atstype) this)
private

Allocate and initialize scalars for the ATS package.

Definition at line 127 of file ats.f90.

128 ! -- modules
130 ! -- dummy
131 class(AtsType) :: this
132 ! -- memory manager variables
133 call mem_allocate(this%nper, 'NPER', 'ATS')
134 call mem_allocate(this%maxats, 'MAXATS', 'ATS')
135 call mem_allocate(this%dtstable, 'DTSTABLE', 'ATS')
136 !
137 ! -- Initialize variables
138 this%nper = 0
139 this%maxats = 0
140 this%dtstable = dnodata

◆ ats_check_timing()

subroutine adaptivetimestepmodule::ats_check_timing ( class(atstype) this)
private

Perform a check on the input data to make sure values are within required ranges.

Definition at line 415 of file ats.f90.

416 ! -- dummy
417 class(AtsType) :: this
418
419 integer(I4B) :: n
420 write (iout, '(1x,a)') 'PROCESSING ATS INPUT'
421 do n = 1, this%maxats
422 !
423 ! -- check iperats
424 if (this%iperats(n) < 1) then
425 write (errmsg, '(a, i0, a, i0)') &
426 'IPERATS must be greater than zero. Found ', this%iperats(n), &
427 ' for ATS PERIODDATA record ', n
428 call store_error(errmsg)
429 end if
430 if (this%iperats(n) > this%nper) then
431 write (warnmsg, '(a, i0, a, i0)') &
432 'IPERATS greater than NPER. Found ', this%iperats(n), &
433 ' for ATS PERIODDATA record ', n
434 call store_warning(warnmsg)
435 end if
436 !
437 ! -- check dt0
438 if (this%dt0(n) < dzero) then
439 write (errmsg, '(a, g15.7, a, i0)') &
440 'DT0 must be >= zero. Found ', this%dt0(n), &
441 ' for ATS PERIODDATA record ', n
442 call store_error(errmsg)
443 end if
444 !
445 ! -- check dtmin
446 if (this%dtmin(n) <= dzero) then
447 write (errmsg, '(a, g15.7, a, i0)') &
448 'DTMIN must be > zero. Found ', this%dtmin(n), &
449 ' for ATS PERIODDATA record ', n
450 call store_error(errmsg)
451 end if
452 !
453 ! -- check dtmax
454 if (this%dtmax(n) <= dzero) then
455 write (errmsg, '(a, g15.7, a, i0)') &
456 'DTMAX must be > zero. Found ', this%dtmax(n), &
457 ' for ATS PERIODDATA record ', n
458 call store_error(errmsg)
459 end if
460 !
461 ! -- check dtmin <= dtmax
462 if (this%dtmin(n) > this%dtmax(n)) then
463 write (errmsg, '(a, 2g15.7, a, i0)') &
464 'DTMIN must be < dtmax. Found ', this%dtmin(n), this%dtmax(n), &
465 ' for ATS PERIODDATA record ', n
466 call store_error(errmsg)
467 end if
468 !
469 ! -- check dtadj
470 if (this%dtadj(n) .ne. dzero .and. this%dtadj(n) < done) then
471 write (errmsg, '(a, g15.7, a, i0)') &
472 'DTADJ must be 0 or >= 1.0. Found ', this%dtadj(n), &
473 ' for ATS PERIODDATA record ', n
474 call store_error(errmsg)
475 end if
476 !
477 ! -- check dtfailadj
478 if (this%dtfailadj(n) .ne. dzero .and. this%dtfailadj(n) < done) then
479 write (errmsg, '(a, g15.7, a, i0)') &
480 'DTFAILADJ must be 0 or >= 1.0. Found ', this%dtfailadj(n), &
481 ' for ATS PERIODDATA record ', n
482 call store_error(errmsg)
483 end if
484
485 end do
486 !
487 ! -- Check for errors
488 if (count_errors() > 0) then
489 call this%parser%StoreErrorUnit()
490 end if
491 write (iout, '(1x,a)') 'DONE PROCESSING ATS INPUT'
Here is the call graph for this function:

◆ ats_da()

subroutine adaptivetimestepmodule::ats_da ( class(atstype) this)
private

Deallocate all ATS variables.

Definition at line 185 of file ats.f90.

187 ! -- dummy
188 class(AtsType) :: this
189 ! -- Scalars
190 call mem_deallocate(this%nper)
191 call mem_deallocate(this%maxats)
192 call mem_deallocate(this%dtstable)
193 !
194 ! -- Arrays
195 call mem_deallocate(this%kperats)
196 call mem_deallocate(this%iperats)
197 call mem_deallocate(this%dt0)
198 call mem_deallocate(this%dtmin)
199 call mem_deallocate(this%dtmax)
200 call mem_deallocate(this%dtadj)
201 call mem_deallocate(this%dtfailadj)

◆ ats_init()

subroutine adaptivetimestepmodule::ats_init ( class(atstype) this,
integer(i4b), intent(in) inunit,
integer(i4b), intent(in) nper_tdis )
private

Create a new ATS object, and read and check input.

Definition at line 75 of file ats.f90.

76 ! -- modules
77 ! -- dummy
78 class(AtsType) :: this
79 integer(I4B), intent(in) :: inunit
80 integer(I4B), intent(in) :: nper_tdis
81 ! -- local
82 ! -- formats
83 character(len=*), parameter :: fmtheader = &
84 "(1X,/1X,'ATS -- ADAPTIVE TIME STEP PACKAGE,', / &
85 &' VERSION 1 : 03/18/2021 - INPUT READ FROM UNIT ',I0)"
86 !
87 ! -- Allocate the scalar variables
88 call this%ats_allocate_scalars()
89 !
90 ! -- Identify package
91 write (iout, fmtheader) inunit
92 !
93 ! -- Initialize block parser
94 call this%parser%initialize(inunit, iout)
95 !
96 ! -- Read options
97 call this%ats_read_options()
98 !
99 ! -- store tdis nper in nper
100 this%nper = nper_tdis
101 !
102 ! -- Read dimensions and then allocate arrays
103 call this%ats_read_dimensions()
104 call this%ats_allocate_arrays()
105 !
106 ! -- Read timing
107 call this%ats_read_timing()
108 !
109 ! -- Echo input data to table
110 call this%ats_input_table()
111 !
112 ! -- Check timing
113 call this%ats_check_timing()
114 !
115 ! -- Process input
116 call this%ats_process_input()
117 !
118 ! -- Close the file
119 call this%parser%Clear()

◆ ats_input_table()

subroutine adaptivetimestepmodule::ats_input_table ( class(atstype) this)
private

Write a table showing the ATS input read from the perioddata block.

Definition at line 363 of file ats.f90.

364 use tablemodule, only: tabletype, table_cr
365 ! -- dummy
366 class(AtsType) :: this
367
368 integer(I4B) :: n
369 character(len=LINELENGTH) :: tag
370 type(TableType), pointer :: inputtab => null()
371 !
372 ! -- setup table
373 call table_cr(inputtab, 'ATS', 'ATS PERIOD DATA')
374 call inputtab%table_df(this%maxats, 7, iout)
375 !
376 ! add columns
377 tag = 'RECORD'
378 call inputtab%initialize_column(tag, 10, alignment=tableft)
379 tag = 'IPERATS'
380 call inputtab%initialize_column(tag, 10, alignment=tableft)
381 tag = 'DT0'
382 call inputtab%initialize_column(tag, 10, alignment=tabcenter)
383 tag = 'DTMIN'
384 call inputtab%initialize_column(tag, 10, alignment=tabcenter)
385 tag = 'DTMAX'
386 call inputtab%initialize_column(tag, 10, alignment=tabcenter)
387 tag = 'DTADJ'
388 call inputtab%initialize_column(tag, 10, alignment=tabcenter)
389 tag = 'DTFAILADJ'
390 call inputtab%initialize_column(tag, 10, alignment=tabcenter)
391 !
392 ! -- write the data
393 do n = 1, this%maxats
394 call inputtab%add_term(n)
395 call inputtab%add_term(this%iperats(n))
396 call inputtab%add_term(this%dt0(n))
397 call inputtab%add_term(this%dtmin(n))
398 call inputtab%add_term(this%dtmax(n))
399 call inputtab%add_term(this%dtadj(n))
400 call inputtab%add_term(this%dtfailadj(n))
401 end do
402 !
403 ! -- deallocate the table
404 call inputtab%table_da()
405 deallocate (inputtab)
406 nullify (inputtab)
subroutine, public table_cr(this, name, title)
Definition Table.f90:87
Here is the call graph for this function:

◆ ats_period_message()

subroutine adaptivetimestepmodule::ats_period_message ( class(atstype) this,
integer(i4b), intent(in) kper )
private

Write message to mfsim.lst file with information on ATS settings for this period.

Definition at line 500 of file ats.f90.

501 ! -- dummy
502 class(AtsType) :: this
503 integer(I4B), intent(in) :: kper
504 ! -- local
505 integer(I4B) :: n
506 character(len=*), parameter :: fmtspts = &
507 "(28X,'ATS IS OVERRIDING TIME STEPPING FOR THIS PERIOD',/ &
508 &28X,'INITIAL TIME STEP SIZE (DT0) = ',G15.7,/ &
509 &28X,'MINIMUM TIME STEP SIZE (DTMIN) = ',G15.7,/ &
510 &28X,'MAXIMUM TIME STEP SIZE (DTMAX) = ',G15.7,/ &
511 &28X,'MULTIPLIER/DIVIDER FOR TIME STEP (DTADJ) = ',G15.7,/ &
512 &28X,'DIVIDER FOR FAILED TIME STEP (DTFAILADJ) = ',G15.7,/ &
513 &)"
514 n = this%kperats(kper)
515 write (iout, fmtspts) this%dt0(n), this%dtmin(n), this%dtmax(n), &
516 this%dtadj(n), this%dtfailadj(n)

◆ ats_process_input()

subroutine adaptivetimestepmodule::ats_process_input ( class(atstype) this)
private

Process ATS input by filling the kperats array.

Definition at line 342 of file ats.f90.

343 ! -- dummy
344 class(AtsType) :: this
345
346 integer(I4B) :: kkper
347 integer(I4B) :: n
348 !
349 ! -- fill kperats for valid iperats values
350 do n = 1, this%maxats
351 kkper = this%iperats(n)
352 if (kkper > 0 .and. kkper <= this%nper) then
353 this%kperats(kkper) = n
354 end if
355 end do

◆ ats_read_dimensions()

subroutine adaptivetimestepmodule::ats_read_dimensions ( class(atstype) this)
private

Read dimensions from ATS input file.

Definition at line 246 of file ats.f90.

247 ! -- dummy
248 class(AtsType) :: this
249 ! -- local
250 character(len=LINELENGTH) :: keyword
251 integer(I4B) :: ierr
252 logical :: isfound, endOfBlock
253 ! -- formats
254 character(len=*), parameter :: fmtmaxats = &
255 &"(1X,I0,' ADAPTIVE TIME STEP RECORDS(S) WILL FOLLOW IN PERIODDATA')"
256 !
257 ! -- get DIMENSIONS block
258 call this%parser%GetBlock('DIMENSIONS', isfound, ierr, &
259 supportopenclose=.true.)
260 !
261 ! -- parse block if detected
262 if (isfound) then
263 write (iout, '(1x,a)') 'PROCESSING ATS DIMENSIONS'
264 do
265 call this%parser%GetNextLine(endofblock)
266 if (endofblock) exit
267 call this%parser%GetStringCaps(keyword)
268 select case (keyword)
269 case ('MAXATS')
270 this%maxats = this%parser%GetInteger()
271 write (iout, fmtmaxats) this%maxats
272 case default
273 write (errmsg, '(a,a)') 'Unknown ATS dimension: ', &
274 trim(keyword)
275 call store_error(errmsg)
276 call this%parser%StoreErrorUnit()
277 end select
278 end do
279 write (iout, '(1x,a)') 'END OF ATS DIMENSIONS'
280 else
281 write (errmsg, '(a)') 'Required DIMENSIONS block not found.'
282 call store_error(errmsg)
283 call this%parser%StoreErrorUnit()
284 end if
Here is the call graph for this function:

◆ ats_read_options()

subroutine adaptivetimestepmodule::ats_read_options ( class(atstype) this)
private

Read options from ATS input file.

Definition at line 209 of file ats.f90.

210 ! -- dummy
211 class(AtsType) :: this
212 ! -- local
213 character(len=LINELENGTH) :: keyword
214 integer(I4B) :: ierr
215 logical :: isfound, endOfBlock
216 ! -- formats
217 !
218 ! -- get options block
219 call this%parser%GetBlock('OPTIONS', isfound, ierr, &
220 supportopenclose=.true., blockrequired=.false.)
221 !
222 ! -- parse options block if detected
223 if (isfound) then
224 write (iout, '(1x,a)') 'PROCESSING ATS OPTIONS'
225 do
226 call this%parser%GetNextLine(endofblock)
227 if (endofblock) exit
228 call this%parser%GetStringCaps(keyword)
229 select case (keyword)
230 case default
231 write (errmsg, '(a,a)') 'Unknown ATS option: ', &
232 trim(keyword)
233 call store_error(errmsg)
234 call this%parser%StoreErrorUnit()
235 end select
236 end do
237 write (iout, '(1x,a)') 'END OF ATS OPTIONS'
238 end if
Here is the call graph for this function:

◆ ats_read_timing()

subroutine adaptivetimestepmodule::ats_read_timing ( class(atstype) this)
private

Read timing information from ATS input file.

Definition at line 292 of file ats.f90.

293 ! -- modules
294 ! -- dummy
295 class(AtsType) :: this
296 ! -- local
297 integer(I4B) :: ierr
298 integer(I4B) :: n
299 logical :: isfound, endOfBlock
300 ! -- formats
301 !
302 ! -- get PERIODDATA block
303 call this%parser%GetBlock('PERIODDATA', isfound, ierr, &
304 supportopenclose=.true.)
305 !
306 ! -- parse block if detected
307 if (isfound) then
308 write (iout, '(1x,a)') 'READING ATS PERIODDATA'
309 do n = 1, this%maxats
310 call this%parser%GetNextLine(endofblock)
311 if (endofblock) exit
312 !
313 ! -- fill the ats data arrays
314 this%iperats(n) = this%parser%GetInteger()
315 this%dt0(n) = this%parser%GetDouble()
316 this%dtmin(n) = this%parser%GetDouble()
317 this%dtmax(n) = this%parser%GetDouble()
318 this%dtadj(n) = this%parser%GetDouble()
319 this%dtfailadj(n) = this%parser%GetDouble()
320 end do
321 !
322 ! -- Close the block
323 call this%parser%terminateblock()
324 !
325 ! -- Check for errors
326 if (count_errors() > 0) then
327 call this%parser%StoreErrorUnit()
328 end if
329 write (iout, '(1x,a)') 'END READING ATS PERIODDATA'
330 else
331 write (errmsg, '(a)') 'Required PERIODDATA block not found.'
332 call store_error(errmsg)
333 call this%parser%StoreErrorUnit()
334 end if
Here is the call graph for this function:

◆ ats_reset_delt()

subroutine adaptivetimestepmodule::ats_reset_delt ( class(atstype) this,
integer(i4b), intent(in) kstp,
integer(i4b), intent(in) kper,
integer(i4b), intent(in) laststepfailed,
real(dp), intent(inout) delt,
logical, intent(inout) finishedtrying )
private

Reset the time step using dtfailadj because the time step did not converge.

Definition at line 645 of file ats.f90.

647 ! -- modules
648 ! -- dummy
649 class(AtsType) :: this
650 integer(I4B), intent(in) :: kstp
651 integer(I4B), intent(in) :: kper
652 integer(I4B), intent(in) :: lastStepFailed
653 real(DP), intent(inout) :: delt
654 logical, intent(inout) :: finishedTrying
655 ! -- local
656 integer(I4B) :: n
657 real(DP) :: delt_temp
658 real(DP) :: tsfact
659 ! -- formats
660 character(len=*), parameter :: fmttsi = &
661 "(1X, 'Failed solution for step ', i0, ' and period ', i0, &
662 &' will be retried using time step of ', G15.7)"
663 if (this%isAdaptivePeriod(kper)) then
664 if (laststepfailed /= 0) then
665 delt_temp = delt
666 n = this%kperats(kper)
667 tsfact = this%dtfailadj(n)
668 if (tsfact > done) then
669 delt_temp = delt / tsfact
670 if (delt_temp >= this%dtmin(n)) then
671 finishedtrying = .false.
672 delt = delt_temp
673 write (iout, fmttsi) kstp, kper, delt
674 end if
675 end if
676
677 end if
678 end if

◆ ats_set_delt()

subroutine adaptivetimestepmodule::ats_set_delt ( class(atstype) this,
integer(i4b), intent(in) kstp,
integer(i4b), intent(in) kper,
real(dp), intent(inout) pertim,
real(dp), intent(in) perlencurrent,
real(dp), intent(inout) delt )
private

Set the time step length (delt) for this time step using the ATS controls.

Definition at line 579 of file ats.f90.

580 ! -- modules
581 ! -- dummy
582 class(AtsType) :: this
583 integer(I4B), intent(in) :: kstp
584 integer(I4B), intent(in) :: kper
585 real(DP), intent(inout) :: pertim
586 real(DP), intent(in) :: perlencurrent
587 real(DP), intent(inout) :: delt
588 ! -- local
589 integer(I4B) :: n
590 real(DP) :: tstart
591 ! -- formats
592 character(len=*), parameter :: fmtdt = &
593 "(1x, 'ATS: time step set to ', G15.7, ' for step ', i0, &
594 &' and period ', i0)"
595 !
596 ! -- initialize the record position (n) for this stress period
597 n = this%kperats(kper)
598 !
599 ! -- set tstart to the end of the last time step.
600 tstart = pertim
601 !
602 ! -- Calculate delt
603 !
604 ! -- Setup new stress period if kstp is 1
605 if (kstp == 1) then
606 !
607 ! -- Assign first value of delt for this stress period
608 if (this%dt0(n) /= dzero) then
609 delt = this%dt0(n)
610 else
611 ! leave delt the way it was
612 end if
613 else
614 !
615 ! -- Assign delt based on stability
616 if (this%dtstable /= dnodata) then
617 delt = this%dtstable
618 this%dtstable = dnodata
619 end if
620 end if
621 !
622 ! -- Ensure tsmin < delt < tsmax
623 if (delt < this%dtmin(n)) then
624 delt = this%dtmin(n)
625 end if
626 if (delt > this%dtmax(n)) then
627 delt = this%dtmax(n)
628 end if
629 !
630 ! -- Cut timestep down to meet end of period
631 if (tstart + delt > perlencurrent - this%dtmin(n)) then
632 delt = perlencurrent - tstart
633 end if
634 !
635 ! -- Write time step size information
636 write (iout, fmtdt) delt, kstp, kper

◆ ats_set_endofperiod()

subroutine adaptivetimestepmodule::ats_set_endofperiod ( class(atstype) this,
integer(i4b), intent(in) kper,
real(dp), intent(inout) pertim,
real(dp), intent(in) perlencurrent,
logical(lgp), intent(inout) endofperiod )
private

Determine if it is the end of the stress period and set the endofperiod logical variable if so.

Definition at line 687 of file ats.f90.

688 ! -- dummy
689 class(AtsType) :: this
690 integer(I4B), intent(in) :: kper
691 real(DP), intent(inout) :: pertim
692 real(DP), intent(in) :: perlencurrent
693 logical(LGP), intent(inout) :: endofperiod
694 ! -- local
695 integer(I4B) :: n
696 !
697 ! -- End of stress period and/or simulation?
698 n = this%kperats(kper)
699 if (abs(pertim - perlencurrent) < this%dtmin(n)) then
700 endofperiod = .true.
701 end if

◆ ats_submit_delt()

subroutine adaptivetimestepmodule::ats_submit_delt ( class(atstype) this,
integer(i4b), intent(in) kstp,
integer(i4b), intent(in) kper,
real(dp), intent(in) dt,
character(len=*), intent(in) sloc,
integer(i4b), intent(in), optional idir )
private

Submit a preferred time step length. Alternatively, if idir is is passed, then either increase or decrease the submitted time step by the dtadj input variable.

Definition at line 526 of file ats.f90.

527 ! -- dummy
528 class(AtsType) :: this
529 integer(I4B), intent(in) :: kstp
530 integer(I4B), intent(in) :: kper
531 real(DP), intent(in) :: dt
532 character(len=*), intent(in) :: sloc
533 integer(I4B), intent(in), optional :: idir
534 ! -- local
535 integer(I4B) :: n
536 real(DP) :: tsfact
537 real(DP) :: dt_temp
538 character(len=*), parameter :: fmtdtsubmit = &
539 &"(1x, 'ATS: ', A,' submitted a preferred time step size of ', G15.7)"
540
541 if (this%isAdaptivePeriod(kper)) then
542 n = this%kperats(kper)
543 tsfact = this%dtadj(n)
544 dt_temp = dzero
545 !
546 ! -- If idir is present, then dt is a length that should be adjusted
547 ! (divided by or multiplied by) by dtadj. That adjustment is what
548 ! dtadj controls, and it does nothing when dtadj is zero or one. If
549 ! idir is not present then dt is an absolute time step length that a
550 ! package has submitted for its own stability, and it is honored
551 ! whatever dtadj is set to.
552 if (present(idir)) then
553 if (tsfact > done) then
554 if (idir == -1) then
555 dt_temp = dt / tsfact
556 else if (idir == 1) then
557 dt_temp = dt * tsfact
558 end if
559 end if
560 else
561 dt_temp = dt
562 end if
563 if (kstp > 1 .and. dt_temp > dzero) then
564 write (iout, fmtdtsubmit) trim(adjustl(sloc)), dt_temp
565 end if
566 if (dt_temp > dzero .and. dt_temp < this%dtstable) then
567 ! -- Reset dtstable to a smaller value
568 this%dtstable = dt_temp
569 end if
570 end if

◆ isadaptiveperiod()

logical(lgp) function adaptivetimestepmodule::isadaptiveperiod ( class(atstype) this,
integer(i4b), intent(in) kper )

Check settings and determine if kper is an adaptive stress period.

Definition at line 58 of file ats.f90.

59 class(AtsType) :: this
60 integer(I4B), intent(in) :: kper
61 logical(LGP) :: lv
62 lv = .false.
63 if (associated(this%kperats)) then
64 if (this%kperats(kper) > 0) then
65 lv = .true.
66 end if
67 end if