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)
57 subroutine oc_ar(this, depvar, dis, dnodata, dvname)
60 real(DP),
dimension(:),
pointer,
contiguous,
intent(in) :: depvar
61 character(len=*),
intent(in) :: dvname
63 real(DP),
intent(in) :: dnodata
65 integer(I4B) :: i, nocdobj, inodata
67 real(DP),
dimension(:),
pointer,
contiguous :: nullvec => null()
72 allocate (this%ocds(nocdobj))
77 call ocdobjptr%init_dbl(
'BUDGET', nullvec, dis,
'PRINT LAST ', &
78 'COLUMNS 10 WIDTH 11 DIGITS 4 GENERAL ', &
81 call ocdobjptr%init_dbl(trim(dvname), depvar, dis,
'PRINT LAST ', &
82 'COLUMNS 10 WIDTH 11 DIGITS 4 GENERAL ', &
85 this%ocds(i) = ocdobjptr
86 deallocate (ocdobjptr)
90 if (this%inunit > 0)
then
91 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, public oc_cr(ocobj, name_model, inunit, iout)
@ brief Create TspOcType
subroutine oc_ar(this, depvar, dis, dnodata, dvname)
@ brief Allocate and read TspOcType
Output control data type.
@ brief Controls model output. Overridden for each model type.