29 subroutine oc_cr(ocobj, name_model, inunit, iout)
32 character(len=*),
intent(in) :: name_model
33 integer(I4B),
intent(in) :: inunit
34 integer(I4B),
intent(in) :: iout
40 call ocobj%allocate_scalars(name_model)
47 call ocobj%parser%Initialize(inunit, iout)
55 subroutine oc_ar(this, name, datavec, dis, dnodata)
58 character(len=*),
intent(in) :: name
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()
70 allocate (this%ocds(nocdobj))
75 call ocdobjptr%init_dbl(
'BUDGET', nullvec, dis,
'PRINT LAST ', &
76 'COLUMNS 10 WIDTH 11 DIGITS 4 GENERAL ', &
79 call ocdobjptr%init_dbl(name, datavec, dis,
'PRINT LAST ', &
80 'COLUMNS 10 WIDTH 11 DIGITS 4 GENERAL ', &
83 this%ocds(i) = ocdobjptr
84 deallocate (ocdobjptr)
88 if (this%inunit > 0)
then
89 call this%read_options()
This module defines variable data types.
Output control data module.
subroutine, public ocd_cr(ocdobj)
@ brief Create a new output control data type.
subroutine oc_ar(this, name, datavec, dis, dnodata)
@ brief Allocate and read SwfOcType
subroutine, public oc_cr(ocobj, name_model, inunit, iout)
@ brief Create SwfOcType
Output control data type.
@ brief Controls model output. Overridden for each model type.