29 subroutine oc_cr(ocobj, name_model, input_mempath, inunit, iout)
32 character(len=*),
intent(in) :: name_model
33 character(len=*),
intent(in) :: input_mempath
34 integer(I4B),
intent(in) :: inunit
35 integer(I4B),
intent(in) :: iout
41 call ocobj%allocate_scalars(name_model, input_mempath)
53 subroutine oc_ar(this, datavec, dis, dnodata)
59 real(DP),
dimension(:),
pointer,
contiguous,
intent(in) :: datavec
61 real(DP),
intent(in) :: dnodata
63 integer(I4B) :: i, nocdobj, inodata
65 real(DP),
dimension(:),
pointer,
contiguous :: nullvec => null()
66 character(len=LINELENGTH) :: stagefile, qoutflowfile
67 logical(LGP) :: found_qoutflowfile
68 logical(LGP) :: found_stagefile
73 allocate (this%ocds(nocdobj))
78 call ocdobjptr%init_dbl(
'BUDGET', nullvec, dis,
'PRINT LAST ', &
79 'COLUMNS 10 WIDTH 11 DIGITS 4 GENERAL ', &
82 call ocdobjptr%init_dbl(
'STAGE', datavec, dis,
'PRINT LAST ', &
83 'COLUMNS 10 WIDTH 11 DIGITS 4 GENERAL ', &
86 call ocdobjptr%init_dbl(
'QOUTFLOW', datavec, dis,
'PRINT LAST ', &
87 'COLUMNS 10 WIDTH 11 DIGITS 4 GENERAL ', &
90 this%ocds(i) = ocdobjptr
91 deallocate (ocdobjptr)
95 if (this%input_mempath /=
'')
then
96 write (this%iout,
'(/,1x,a,/)')
'PROCESSING OC OPTIONS'
97 call this%source_options()
98 call mem_set_value(qoutflowfile,
'QOUTFLOWFILE', this%input_mempath, &
100 call mem_set_value(stagefile,
'STAGEFILE', this%input_mempath, &
102 if (found_qoutflowfile)
then
103 call this%set_ocfile(
'QOUTFLOW', qoutflowfile, this%iout)
105 if (found_stagefile)
then
106 call this%set_ocfile(
'STAGE', stagefile, this%iout)
108 write (this%iout,
'(1x,a)')
'END OF OC OPTIONS'
This module contains simulation constants.
integer(i4b), parameter linelength
maximum length of a standard line
This module defines variable data types.
Output control data module.
subroutine, public ocd_cr(ocdobj)
@ brief Create a new output control data type.
subroutine, public oc_cr(ocobj, name_model, input_mempath, inunit, iout)
@ brief Create SwfOcType
subroutine oc_ar(this, datavec, dis, dnodata)
@ brief Allocate and read SwfOcType
Output control data type.
@ brief Controls model output. Overridden for each model type.