30 subroutine oc_cr(ocobj, name_model, inunit, iout)
33 character(len=*),
intent(in) :: name_model
34 integer(I4B),
intent(in) :: inunit
35 integer(I4B),
intent(in) :: iout
41 call ocobj%allocate_scalars(name_model)
48 call ocobj%parser%Initialize(inunit, iout)
56 subroutine oc_ar(this, name, datavec, dis, dnodata)
59 character(len=*),
intent(in) :: name
60 real(DP),
dimension(:),
pointer,
contiguous,
intent(in) :: datavec
62 real(DP),
intent(in) :: dnodata
64 integer(I4B) :: i, nocdobj, inodata
66 real(DP),
dimension(:),
pointer,
contiguous :: nullvec => null()
71 allocate (this%ocds(nocdobj))
76 call ocdobjptr%init_dbl(
'BUDGET', nullvec, dis,
'PRINT LAST ', &
77 'COLUMNS 10 WIDTH 11 DIGITS 4 GENERAL ', &
80 call ocdobjptr%init_dbl(name, datavec, dis,
'PRINT LAST ', &
81 'COLUMNS 10 WIDTH 11 DIGITS 4 GENERAL ', &
84 this%ocds(i) = ocdobjptr
85 deallocate (ocdobjptr)
89 if (this%inunit > 0)
then
90 call this%read_options()
This module contains simulation constants.
integer(i4b), parameter lenmodelname
maximum length of the model name
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.