65 allocate (this%save_steps)
66 allocate (this%print_steps)
67 call this%save_steps%init()
68 call this%print_steps%init()
73 if (
associated(this%save_steps))
deallocate (this%save_steps)
74 if (
associated(this%print_steps))
deallocate (this%print_steps)
79 call this%deallocate()
84 subroutine read (this, linein, iout)
87 character(len=*),
intent(in) :: linein
88 integer(I4B),
intent(in) :: iout
90 character(len=len(linein)) :: line
91 integer(I4B) :: lloc, istart, istop, ival
96 call urword(line, lloc, istart, istop, 1, ival, rval, 0, 0)
98 select case (line(istart:istop))
100 call this%print_steps%read(line(istop + 2:))
102 call this%print_steps%log(iout, verb=
"PRINTED")
104 call this%save_steps%read(line(istop + 2:))
106 call this%save_steps%log(iout, verb=
"SAVED")
109 'Looking for PRINT or SAVE. Found: '//trim(adjustl(line)), &
115 subroutine set(this, ocaction, ocsetting, iout)
118 character(len=*) :: ocaction
119 character(len=*) :: ocsetting
120 integer(I4B),
intent(in) :: iout
121 select case (ocaction)
123 call this%print_steps%read(ocsetting)
125 call this%print_steps%log(iout, verb=
"PRINTED")
127 call this%save_steps%read(ocsetting)
129 call this%save_steps%log(iout, verb=
"SAVED")
132 'Looking for PRINT or SAVE. Found: '//trim(adjustl(ocaction)), &
140 integer(I4B),
intent(in) :: kstp
141 logical(LGP),
intent(in) :: endofperiod
143 should_print = this%print_steps%is_selected(kstp, endofperiod)
149 integer(I4B),
intent(in) :: kstp
150 logical(LGP),
intent(in) :: endofperiod
152 should_save = this%save_steps%is_selected(kstp, endofperiod)
This module defines variable data types.
Print/save manager module.
subroutine set(this, ocaction, ocsetting, iout)
@ brief set data from an input record.
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.