MODFLOW 6  version 6.7.0.dev3
USGS Modular Hydrologic Model
GwfNpfOptions.f90
Go to the documentation of this file.
2  use kindmodule, only: i4b, dp
3  use constantsmodule, only: done
4 
5  implicit none
6  private
7 
8  !> Data structure and helper methods for passing NPF options
9  !! into npf_df, as an alternative to reading those from file
10  !<
11  type, public :: gwfnpfoptionstype
12  integer(I4B) :: icellavg !< same as npf variable
13  integer(I4B) :: ithickstrt !< same as npf variable
14  integer(I4B) :: ihighcellsat !< same as npf variable
15  integer(I4B) :: iperched !< same as npf variable
16  integer(I4B) :: ivarcv !< same as npf variable
17  integer(I4B) :: idewatcv !< same as npf variable
18  integer(I4B) :: irewet !< same as npf variable
19  real(dp) :: wetfct !< same as npf variable
20  integer(I4B) :: iwetit !< same as npf variable
21  integer(I4B) :: ihdwet !< same as npf variable
22  contains
23  procedure, pass(this) :: construct
24  procedure, pass(this) :: destroy
25  end type gwfnpfoptionstype
26 
27 contains
28 
29  !> @brief construct the input options, set variables to their defaults
30  !<
31  subroutine construct(this)
32  class(gwfnpfoptionstype), intent(inout) :: this !< the NPF options, as in the input OPTIONS block
33 
34  this%icellavg = 0
35  this%ithickstrt = 0
36  this%ihighcellsat = 0
37  this%iperched = 0
38  this%ivarcv = 0
39  this%idewatcv = 0
40  this%irewet = 0
41  this%wetfct = done
42  this%iwetit = 1
43  this%ihdwet = 0
44 
45  end subroutine construct
46 
47  !> @brief cleans up
48  !<
49  subroutine destroy(this)
50  class(gwfnpfoptionstype), intent(inout) :: this !< the NPF options, as in the input OPTIONS block
51 
52  ! nothing to be done here for now...
53 
54  end subroutine destroy
55 
56 end module gwfnpfoptionsmodule
This module contains simulation constants.
Definition: Constants.f90:9
real(dp), parameter done
real constant 1
Definition: Constants.f90:76
subroutine destroy(this)
cleans up
subroutine construct(this)
construct the input options, set variables to their defaults
This module defines variable data types.
Definition: kind.f90:8
Data structure and helper methods for passing NPF options into npf_df, as an alternative to reading t...