MODFLOW 6  version 6.5.0.dev2
MODFLOW 6 Code Documentation
gwfocmodule Module Reference

Data Types

type  gwfoctype
 @ brief Output control for GWF More...
 

Functions/Subroutines

subroutine, public oc_cr (ocobj, name_model, inunit, iout)
 @ brief Create GwfOcType More...
 
subroutine oc_ar (this, head, dis, dnodata)
 @ brief Allocate and read GwfOcType More...
 

Function/Subroutine Documentation

◆ oc_ar()

subroutine gwfocmodule::oc_ar ( class(gwfoctype this,
real(dp), dimension(:), intent(in), pointer, contiguous  head,
class(disbasetype), intent(in), pointer  dis,
real(dp), intent(in)  dnodata 
)
private

Setup head and budget as output control variables.

Parameters
thisGwfOcType object
[in]headmodel head
[in]dismodel discretization package
[in]dnodatano data value

Definition at line 60 of file gwf-oc.f90.

61  ! -- dummy
62  class(GwfOcType) :: this !< GwfOcType object
63  real(DP), dimension(:), pointer, contiguous, intent(in) :: head !< model head
64  class(DisBaseType), pointer, intent(in) :: dis !< model discretization package
65  real(DP), intent(in) :: dnodata !< no data value
66  ! -- local
67  integer(I4B) :: i, nocdobj, inodata
68  type(OutputControlDataType), pointer :: ocdobjptr
69  real(DP), dimension(:), pointer, contiguous :: nullvec => null()
70  !
71  ! -- Initialize variables
72  inodata = 0
73  nocdobj = 2
74  allocate (this%ocdobj(nocdobj))
75  do i = 1, nocdobj
76  call ocd_cr(ocdobjptr)
77  select case (i)
78  case (1)
79  call ocdobjptr%init_dbl('BUDGET', nullvec, dis, 'PRINT LAST ', &
80  'COLUMNS 10 WIDTH 11 DIGITS 4 GENERAL ', &
81  this%iout, dnodata)
82  case (2)
83  call ocdobjptr%init_dbl('HEAD', head, dis, 'PRINT LAST ', &
84  'COLUMNS 10 WIDTH 11 DIGITS 4 GENERAL ', &
85  this%iout, dnodata)
86  end select
87  this%ocdobj(i) = ocdobjptr
88  deallocate (ocdobjptr)
89  end do
90  !
91  ! -- Read options or set defaults if this package not on
92  if (this%inunit > 0) then
93  call this%read_options()
94  end if
95  !
96  ! -- Return
97  return
Here is the call graph for this function:

◆ oc_cr()

subroutine, public gwfocmodule::oc_cr ( type(gwfoctype), pointer  ocobj,
character(len=*), intent(in)  name_model,
integer(i4b), intent(in)  inunit,
integer(i4b), intent(in)  iout 
)

Create by allocating a new GwfOcType object and initializing member variables.

Parameters
ocobjGwfOcType object
[in]name_modelname of the model
[in]inunitunit number for input
[in]ioutunit number for output

Definition at line 31 of file gwf-oc.f90.

32  ! -- dummy
33  type(GwfOcType), pointer :: ocobj !< GwfOcType object
34  character(len=*), intent(in) :: name_model !< name of the model
35  integer(I4B), intent(in) :: inunit !< unit number for input
36  integer(I4B), intent(in) :: iout !< unit number for output
37  !
38  ! -- Create the object
39  allocate (ocobj)
40  !
41  ! -- Allocate scalars
42  call ocobj%allocate_scalars(name_model)
43  !
44  ! -- Save unit numbers
45  ocobj%inunit = inunit
46  ocobj%iout = iout
47  !
48  ! -- Initialize block parser
49  call ocobj%parser%Initialize(inunit, iout)
50  !
51  ! -- Return
52  return
Here is the caller graph for this function: