64 allocate (this%save_steps)
65 allocate (this%print_steps)
66 call this%save_steps%init()
67 call this%print_steps%init()
72 if (
associated(this%save_steps))
deallocate (this%save_steps)
73 if (
associated(this%print_steps))
deallocate (this%print_steps)
78 call this%deallocate()
83 subroutine read (this, linein, iout)
86 character(len=*),
intent(in) :: linein
87 integer(I4B),
intent(in) :: iout
89 character(len=len(linein)) :: line
90 integer(I4B) :: lloc, istart, istop, ival
95 call urword(line, lloc, istart, istop, 1, ival, rval, 0, 0)
97 select case (line(istart:istop))
99 call this%print_steps%read(line(istop + 2:))
101 call this%print_steps%log(iout, verb=
"PRINTED")
103 call this%save_steps%read(line(istop + 2:))
105 call this%save_steps%log(iout, verb=
"SAVED")
108 'Looking for PRINT or SAVE. Found: '//trim(adjustl(line)), &
116 integer(I4B),
intent(in) :: kstp
117 logical(LGP),
intent(in) :: endofperiod
119 should_print = this%print_steps%is_selected(kstp, endofperiod)
125 integer(I4B),
intent(in) :: kstp
126 logical(LGP),
intent(in) :: endofperiod
128 should_save = this%save_steps%is_selected(kstp, endofperiod)
This module defines variable data types.
Print/save manager module.
logical function should_print(this, kstp, endofperiod)
@ brief Determine if printing is enabled for this time step.
subroutine read(this, linein, iout)
@ brief Read a line of input and prepare the manager.
type(printsavemanagertype) function, pointer, public create_psm()
Initialize or clear the print/save manager.
subroutine allocate(this)
subroutine deallocate(this)
logical function should_save(this, kstp, endofperiod)
@ brief Determine if saving is enabled for this time step.
This module contains simulation methods.
subroutine, public store_error(msg, terminate)
Store an error message.
Time step selection module.
Time step selection type.