MODFLOW 6  version 6.7.0.dev2
USGS Modular Hydrologic Model
IdmPrtDfnSelector.f90
Go to the documentation of this file.
1 ! ** Do Not Modify! MODFLOW 6 system generated file. **
3 
4  use constantsmodule, only: lenvarname
5  use simmodule, only: store_error
14 
15  implicit none
16  private
17  public :: prt_param_definitions
19  public :: prt_block_definitions
20  public :: prt_idm_multi_package
21  public :: prt_idm_subpackages
22  public :: prt_idm_integrated
23 
24 contains
25 
26  subroutine set_param_pointer(input_dfn, input_dfn_target)
27  type(inputparamdefinitiontype), dimension(:), pointer :: input_dfn
28  type(inputparamdefinitiontype), dimension(:), target :: input_dfn_target
29  input_dfn => input_dfn_target
30  end subroutine set_param_pointer
31 
32  subroutine set_block_pointer(input_dfn, input_dfn_target)
33  type(inputblockdefinitiontype), dimension(:), pointer :: input_dfn
34  type(inputblockdefinitiontype), dimension(:), target :: input_dfn_target
35  input_dfn => input_dfn_target
36  end subroutine set_block_pointer
37 
38  subroutine set_subpkg_pointer(subpkg_list, subpkg_list_target)
39  character(len=16), dimension(:), pointer :: subpkg_list
40  character(len=16), dimension(:), target :: subpkg_list_target
41  subpkg_list => subpkg_list_target
42  end subroutine set_subpkg_pointer
43 
44  function prt_param_definitions(subcomponent) result(input_definition)
45  character(len=*), intent(in) :: subcomponent
46  type(inputparamdefinitiontype), dimension(:), pointer :: input_definition
47  nullify (input_definition)
48  select case (subcomponent)
49  case ('NAM')
50  call set_param_pointer(input_definition, prt_nam_param_definitions)
51  case ('DIS')
52  call set_param_pointer(input_definition, prt_dis_param_definitions)
53  case ('DISV')
54  call set_param_pointer(input_definition, prt_disv_param_definitions)
55  case ('FMI')
56  call set_param_pointer(input_definition, prt_fmi_param_definitions)
57  case ('MIP')
58  call set_param_pointer(input_definition, prt_mip_param_definitions)
59  case ('PRP')
60  call set_param_pointer(input_definition, prt_prp_param_definitions)
61  case default
62  end select
63  return
64  end function prt_param_definitions
65 
66  function prt_aggregate_definitions(subcomponent) result(input_definition)
67  character(len=*), intent(in) :: subcomponent
68  type(inputparamdefinitiontype), dimension(:), pointer :: input_definition
69  nullify (input_definition)
70  select case (subcomponent)
71  case ('NAM')
72  call set_param_pointer(input_definition, prt_nam_aggregate_definitions)
73  case ('DIS')
74  call set_param_pointer(input_definition, prt_dis_aggregate_definitions)
75  case ('DISV')
77  case ('FMI')
78  call set_param_pointer(input_definition, prt_fmi_aggregate_definitions)
79  case ('MIP')
80  call set_param_pointer(input_definition, prt_mip_aggregate_definitions)
81  case ('PRP')
82  call set_param_pointer(input_definition, prt_prp_aggregate_definitions)
83  case default
84  end select
85  return
86  end function prt_aggregate_definitions
87 
88  function prt_block_definitions(subcomponent) result(input_definition)
89  character(len=*), intent(in) :: subcomponent
90  type(inputblockdefinitiontype), dimension(:), pointer :: input_definition
91  nullify (input_definition)
92  select case (subcomponent)
93  case ('NAM')
94  call set_block_pointer(input_definition, prt_nam_block_definitions)
95  case ('DIS')
96  call set_block_pointer(input_definition, prt_dis_block_definitions)
97  case ('DISV')
98  call set_block_pointer(input_definition, prt_disv_block_definitions)
99  case ('FMI')
100  call set_block_pointer(input_definition, prt_fmi_block_definitions)
101  case ('MIP')
102  call set_block_pointer(input_definition, prt_mip_block_definitions)
103  case ('PRP')
104  call set_block_pointer(input_definition, prt_prp_block_definitions)
105  case default
106  end select
107  return
108  end function prt_block_definitions
109 
110  function prt_idm_multi_package(subcomponent) result(multi_package)
111  character(len=*), intent(in) :: subcomponent
112  logical :: multi_package
113  select case (subcomponent)
114  case ('NAM')
115  multi_package = prt_nam_multi_package
116  case ('DIS')
117  multi_package = prt_dis_multi_package
118  case ('DISV')
119  multi_package = prt_disv_multi_package
120  case ('FMI')
121  multi_package = prt_fmi_multi_package
122  case ('MIP')
123  multi_package = prt_mip_multi_package
124  case ('PRP')
125  multi_package = prt_prp_multi_package
126  case default
127  call store_error('Idm selector subcomponent not found; '//&
128  &'component="PRT"'//&
129  &', subcomponent="'//trim(subcomponent)//'".', .true.)
130  end select
131  return
132  end function prt_idm_multi_package
133 
134  function prt_idm_subpackages(subcomponent) result(subpackages)
135  character(len=*), intent(in) :: subcomponent
136  character(len=16), dimension(:), pointer :: subpackages
137  select case (subcomponent)
138  case ('NAM')
139  call set_subpkg_pointer(subpackages, prt_nam_subpackages)
140  case ('DIS')
141  call set_subpkg_pointer(subpackages, prt_dis_subpackages)
142  case ('DISV')
143  call set_subpkg_pointer(subpackages, prt_disv_subpackages)
144  case ('FMI')
145  call set_subpkg_pointer(subpackages, prt_fmi_subpackages)
146  case ('MIP')
147  call set_subpkg_pointer(subpackages, prt_mip_subpackages)
148  case ('PRP')
149  call set_subpkg_pointer(subpackages, prt_prp_subpackages)
150  case default
151  end select
152  return
153  end function prt_idm_subpackages
154 
155  function prt_idm_integrated(subcomponent) result(integrated)
156  character(len=*), intent(in) :: subcomponent
157  logical :: integrated
158  integrated = .false.
159  select case (subcomponent)
160  case ('NAM')
161  integrated = .true.
162  case ('DIS')
163  integrated = .true.
164  case ('DISV')
165  integrated = .true.
166  case ('FMI')
167  integrated = .true.
168  case ('MIP')
169  integrated = .true.
170  case ('PRP')
171  integrated = .true.
172  case default
173  end select
174  return
175  end function prt_idm_integrated
176 
177 end module idmprtdfnselectormodule
This module contains simulation constants.
Definition: Constants.f90:9
integer(i4b), parameter lenvarname
maximum length of a variable name
Definition: Constants.f90:17
type(inputparamdefinitiontype) function, dimension(:), pointer, public prt_aggregate_definitions(subcomponent)
type(inputparamdefinitiontype) function, dimension(:), pointer, public prt_param_definitions(subcomponent)
logical function, public prt_idm_multi_package(subcomponent)
logical function, public prt_idm_integrated(subcomponent)
subroutine set_subpkg_pointer(subpkg_list, subpkg_list_target)
subroutine set_block_pointer(input_dfn, input_dfn_target)
character(len=16) function, dimension(:), pointer, public prt_idm_subpackages(subcomponent)
subroutine set_param_pointer(input_dfn, input_dfn_target)
type(inputblockdefinitiontype) function, dimension(:), pointer, public prt_block_definitions(subcomponent)
This module contains the InputDefinitionModule.
character(len=16), dimension(*), parameter, public prt_dis_subpackages
Definition: prt-disidm.f90:43
type(inputparamdefinitiontype), dimension(*), parameter, public prt_dis_aggregate_definitions
Definition: prt-disidm.f90:510
type(inputblockdefinitiontype), dimension(*), parameter, public prt_dis_block_definitions
Definition: prt-disidm.f90:531
type(inputparamdefinitiontype), dimension(*), parameter, public prt_dis_param_definitions
Definition: prt-disidm.f90:481
logical, public prt_dis_multi_package
Definition: prt-disidm.f90:41
logical, public prt_disv_multi_package
Definition: prt-disvidm.f90:47
type(inputparamdefinitiontype), dimension(*), parameter, public prt_disv_aggregate_definitions
type(inputparamdefinitiontype), dimension(*), parameter, public prt_disv_param_definitions
character(len=16), dimension(*), parameter, public prt_disv_subpackages
Definition: prt-disvidm.f90:49
type(inputblockdefinitiontype), dimension(*), parameter, public prt_disv_block_definitions
type(inputparamdefinitiontype), dimension(*), parameter, public prt_fmi_aggregate_definitions
Definition: prt-fmiidm.f90:128
logical, public prt_fmi_multi_package
Definition: prt-fmiidm.f90:21
character(len=16), dimension(*), parameter, public prt_fmi_subpackages
Definition: prt-fmiidm.f90:23
type(inputparamdefinitiontype), dimension(*), parameter, public prt_fmi_param_definitions
Definition: prt-fmiidm.f90:101
type(inputblockdefinitiontype), dimension(*), parameter, public prt_fmi_block_definitions
Definition: prt-fmiidm.f90:134
type(inputblockdefinitiontype), dimension(*), parameter, public prt_mip_block_definitions
Definition: prt-mipidm.f90:131
logical, public prt_mip_multi_package
Definition: prt-mipidm.f90:21
type(inputparamdefinitiontype), dimension(*), parameter, public prt_mip_aggregate_definitions
Definition: prt-mipidm.f90:110
type(inputparamdefinitiontype), dimension(*), parameter, public prt_mip_param_definitions
Definition: prt-mipidm.f90:101
character(len=16), dimension(*), parameter, public prt_mip_subpackages
Definition: prt-mipidm.f90:23
type(inputblockdefinitiontype), dimension(*), parameter, public prt_nam_block_definitions
Definition: prt-namidm.f90:194
type(inputparamdefinitiontype), dimension(*), parameter, public prt_nam_param_definitions
Definition: prt-namidm.f90:158
logical, public prt_nam_multi_package
Definition: prt-namidm.f90:24
type(inputparamdefinitiontype), dimension(*), parameter, public prt_nam_aggregate_definitions
Definition: prt-namidm.f90:188
character(len=16), dimension(*), parameter, public prt_nam_subpackages
Definition: prt-namidm.f90:26
type(inputparamdefinitiontype), dimension(*), parameter, public prt_prp_param_definitions
Definition: prt-prpidm.f90:899
type(inputparamdefinitiontype), dimension(*), parameter, public prt_prp_aggregate_definitions
logical, public prt_prp_multi_package
Definition: prt-prpidm.f90:63
character(len=16), dimension(*), parameter, public prt_prp_subpackages
Definition: prt-prpidm.f90:65
type(inputblockdefinitiontype), dimension(*), parameter, public prt_prp_block_definitions
This module contains simulation methods.
Definition: Sim.f90:10
subroutine, public store_error(msg, terminate)
Store an error message.
Definition: Sim.f90:92