MODFLOW 6  version 6.6.0.dev0
USGS Modular Hydrologic Model
IdmChfDfnSelector.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
20 
21  implicit none
22  private
23  public :: chf_param_definitions
25  public :: chf_block_definitions
26  public :: chf_idm_multi_package
27  public :: chf_idm_subpackages
28  public :: chf_idm_integrated
29 
30 contains
31 
32  subroutine set_param_pointer(input_dfn, input_dfn_target)
33  type(inputparamdefinitiontype), dimension(:), pointer :: input_dfn
34  type(inputparamdefinitiontype), dimension(:), target :: input_dfn_target
35  input_dfn => input_dfn_target
36  end subroutine set_param_pointer
37 
38  subroutine set_block_pointer(input_dfn, input_dfn_target)
39  type(inputblockdefinitiontype), dimension(:), pointer :: input_dfn
40  type(inputblockdefinitiontype), dimension(:), target :: input_dfn_target
41  input_dfn => input_dfn_target
42  end subroutine set_block_pointer
43 
44  subroutine set_subpkg_pointer(subpkg_list, subpkg_list_target)
45  character(len=16), dimension(:), pointer :: subpkg_list
46  character(len=16), dimension(:), target :: subpkg_list_target
47  subpkg_list => subpkg_list_target
48  end subroutine set_subpkg_pointer
49 
50  function chf_param_definitions(subcomponent) result(input_definition)
51  character(len=*), intent(in) :: subcomponent
52  type(inputparamdefinitiontype), dimension(:), pointer :: input_definition
53  nullify (input_definition)
54  select case (subcomponent)
55  case ('NAM')
56  call set_param_pointer(input_definition, chf_nam_param_definitions)
57  case ('DISV1D')
58  call set_param_pointer(input_definition, chf_disv1d_param_definitions)
59  case ('DIS2D')
60  call set_param_pointer(input_definition, chf_dis2d_param_definitions)
61  case ('DISV2D')
62  call set_param_pointer(input_definition, chf_disv2d_param_definitions)
63  case ('CXS')
64  call set_param_pointer(input_definition, chf_cxs_param_definitions)
65  case ('DFW')
66  call set_param_pointer(input_definition, chf_dfw_param_definitions)
67  case ('IC')
68  call set_param_pointer(input_definition, chf_ic_param_definitions)
69  case ('CDB')
70  call set_param_pointer(input_definition, chf_cdb_param_definitions)
71  case ('CHD')
72  call set_param_pointer(input_definition, chf_chd_param_definitions)
73  case ('FLW')
74  call set_param_pointer(input_definition, chf_flw_param_definitions)
75  case ('STO')
76  call set_param_pointer(input_definition, chf_sto_param_definitions)
77  case ('ZDG')
78  call set_param_pointer(input_definition, chf_zdg_param_definitions)
79  case default
80  end select
81  return
82  end function chf_param_definitions
83 
84  function chf_aggregate_definitions(subcomponent) result(input_definition)
85  character(len=*), intent(in) :: subcomponent
86  type(inputparamdefinitiontype), dimension(:), pointer :: input_definition
87  nullify (input_definition)
88  select case (subcomponent)
89  case ('NAM')
90  call set_param_pointer(input_definition, chf_nam_aggregate_definitions)
91  case ('DISV1D')
93  case ('DIS2D')
95  case ('DISV2D')
97  case ('CXS')
98  call set_param_pointer(input_definition, chf_cxs_aggregate_definitions)
99  case ('DFW')
100  call set_param_pointer(input_definition, chf_dfw_aggregate_definitions)
101  case ('IC')
102  call set_param_pointer(input_definition, chf_ic_aggregate_definitions)
103  case ('CDB')
104  call set_param_pointer(input_definition, chf_cdb_aggregate_definitions)
105  case ('CHD')
106  call set_param_pointer(input_definition, chf_chd_aggregate_definitions)
107  case ('FLW')
108  call set_param_pointer(input_definition, chf_flw_aggregate_definitions)
109  case ('STO')
110  call set_param_pointer(input_definition, chf_sto_aggregate_definitions)
111  case ('ZDG')
112  call set_param_pointer(input_definition, chf_zdg_aggregate_definitions)
113  case default
114  end select
115  return
116  end function chf_aggregate_definitions
117 
118  function chf_block_definitions(subcomponent) result(input_definition)
119  character(len=*), intent(in) :: subcomponent
120  type(inputblockdefinitiontype), dimension(:), pointer :: input_definition
121  nullify (input_definition)
122  select case (subcomponent)
123  case ('NAM')
124  call set_block_pointer(input_definition, chf_nam_block_definitions)
125  case ('DISV1D')
126  call set_block_pointer(input_definition, chf_disv1d_block_definitions)
127  case ('DIS2D')
128  call set_block_pointer(input_definition, chf_dis2d_block_definitions)
129  case ('DISV2D')
130  call set_block_pointer(input_definition, chf_disv2d_block_definitions)
131  case ('CXS')
132  call set_block_pointer(input_definition, chf_cxs_block_definitions)
133  case ('DFW')
134  call set_block_pointer(input_definition, chf_dfw_block_definitions)
135  case ('IC')
136  call set_block_pointer(input_definition, chf_ic_block_definitions)
137  case ('CDB')
138  call set_block_pointer(input_definition, chf_cdb_block_definitions)
139  case ('CHD')
140  call set_block_pointer(input_definition, chf_chd_block_definitions)
141  case ('FLW')
142  call set_block_pointer(input_definition, chf_flw_block_definitions)
143  case ('STO')
144  call set_block_pointer(input_definition, chf_sto_block_definitions)
145  case ('ZDG')
146  call set_block_pointer(input_definition, chf_zdg_block_definitions)
147  case default
148  end select
149  return
150  end function chf_block_definitions
151 
152  function chf_idm_multi_package(subcomponent) result(multi_package)
153  character(len=*), intent(in) :: subcomponent
154  logical :: multi_package
155  select case (subcomponent)
156  case ('NAM')
157  multi_package = chf_nam_multi_package
158  case ('DISV1D')
159  multi_package = chf_disv1d_multi_package
160  case ('DIS2D')
161  multi_package = chf_dis2d_multi_package
162  case ('DISV2D')
163  multi_package = chf_disv2d_multi_package
164  case ('CXS')
165  multi_package = chf_cxs_multi_package
166  case ('DFW')
167  multi_package = chf_dfw_multi_package
168  case ('IC')
169  multi_package = chf_ic_multi_package
170  case ('CDB')
171  multi_package = chf_cdb_multi_package
172  case ('CHD')
173  multi_package = chf_chd_multi_package
174  case ('FLW')
175  multi_package = chf_flw_multi_package
176  case ('STO')
177  multi_package = chf_sto_multi_package
178  case ('ZDG')
179  multi_package = chf_zdg_multi_package
180  case default
181  call store_error('Idm selector subcomponent not found; '//&
182  &'component="CHF"'//&
183  &', subcomponent="'//trim(subcomponent)//'".', .true.)
184  end select
185  return
186  end function chf_idm_multi_package
187 
188  function chf_idm_subpackages(subcomponent) result(subpackages)
189  character(len=*), intent(in) :: subcomponent
190  character(len=16), dimension(:), pointer :: subpackages
191  select case (subcomponent)
192  case ('NAM')
193  call set_subpkg_pointer(subpackages, chf_nam_subpackages)
194  case ('DISV1D')
195  call set_subpkg_pointer(subpackages, chf_disv1d_subpackages)
196  case ('DIS2D')
197  call set_subpkg_pointer(subpackages, chf_dis2d_subpackages)
198  case ('DISV2D')
199  call set_subpkg_pointer(subpackages, chf_disv2d_subpackages)
200  case ('CXS')
201  call set_subpkg_pointer(subpackages, chf_cxs_subpackages)
202  case ('DFW')
203  call set_subpkg_pointer(subpackages, chf_dfw_subpackages)
204  case ('IC')
205  call set_subpkg_pointer(subpackages, chf_ic_subpackages)
206  case ('CDB')
207  call set_subpkg_pointer(subpackages, chf_cdb_subpackages)
208  case ('CHD')
209  call set_subpkg_pointer(subpackages, chf_chd_subpackages)
210  case ('FLW')
211  call set_subpkg_pointer(subpackages, chf_flw_subpackages)
212  case ('STO')
213  call set_subpkg_pointer(subpackages, chf_sto_subpackages)
214  case ('ZDG')
215  call set_subpkg_pointer(subpackages, chf_zdg_subpackages)
216  case default
217  end select
218  return
219  end function chf_idm_subpackages
220 
221  function chf_idm_integrated(subcomponent) result(integrated)
222  character(len=*), intent(in) :: subcomponent
223  logical :: integrated
224  integrated = .false.
225  select case (subcomponent)
226  case ('NAM')
227  integrated = .true.
228  case ('DISV1D')
229  integrated = .true.
230  case ('DIS2D')
231  integrated = .true.
232  case ('DISV2D')
233  integrated = .true.
234  case ('CXS')
235  integrated = .true.
236  case ('DFW')
237  integrated = .true.
238  case ('IC')
239  integrated = .true.
240  case ('CDB')
241  integrated = .true.
242  case ('CHD')
243  integrated = .true.
244  case ('FLW')
245  integrated = .true.
246  case ('STO')
247  integrated = .true.
248  case ('ZDG')
249  integrated = .true.
250  case default
251  end select
252  return
253  end function chf_idm_integrated
254 
255 end module idmchfdfnselectormodule
type(inputparamdefinitiontype), dimension(*), parameter, public chf_cdb_aggregate_definitions
Definition: chf-cdbidm.f90:348
logical, public chf_cdb_multi_package
Definition: chf-cdbidm.f90:32
type(inputparamdefinitiontype), dimension(*), parameter, public chf_cdb_param_definitions
Definition: chf-cdbidm.f90:310
type(inputblockdefinitiontype), dimension(*), parameter, public chf_cdb_block_definitions
Definition: chf-cdbidm.f90:354
character(len=16), dimension(*), parameter, public chf_cdb_subpackages
Definition: chf-cdbidm.f90:34
character(len=16), dimension(*), parameter, public chf_chd_subpackages
Definition: chf-chdidm.f90:37
type(inputparamdefinitiontype), dimension(*), parameter, public chf_chd_aggregate_definitions
Definition: chf-chdidm.f90:408
logical, public chf_chd_multi_package
Definition: chf-chdidm.f90:35
type(inputblockdefinitiontype), dimension(*), parameter, public chf_chd_block_definitions
Definition: chf-chdidm.f90:414
type(inputparamdefinitiontype), dimension(*), parameter, public chf_chd_param_definitions
Definition: chf-chdidm.f90:367
type(inputparamdefinitiontype), dimension(*), parameter, public chf_cxs_param_definitions
Definition: chf-cxsidm.f90:177
logical, public chf_cxs_multi_package
Definition: chf-cxsidm.f90:25
character(len=16), dimension(*), parameter, public chf_cxs_subpackages
Definition: chf-cxsidm.f90:27
type(inputblockdefinitiontype), dimension(*), parameter, public chf_cxs_block_definitions
Definition: chf-cxsidm.f90:233
type(inputparamdefinitiontype), dimension(*), parameter, public chf_cxs_aggregate_definitions
Definition: chf-cxsidm.f90:226
type(inputblockdefinitiontype), dimension(*), parameter, public chf_dfw_block_definitions
Definition: chf-dfwidm.f90:331
type(inputparamdefinitiontype), dimension(*), parameter, public chf_dfw_param_definitions
Definition: chf-dfwidm.f90:291
character(len=16), dimension(*), parameter, public chf_dfw_subpackages
Definition: chf-dfwidm.f90:33
type(inputparamdefinitiontype), dimension(*), parameter, public chf_dfw_aggregate_definitions
Definition: chf-dfwidm.f90:310
logical, public chf_dfw_multi_package
Definition: chf-dfwidm.f90:31
type(inputparamdefinitiontype), dimension(*), parameter, public chf_dis2d_aggregate_definitions
logical, public chf_dis2d_multi_package
character(len=16), dimension(*), parameter, public chf_dis2d_subpackages
type(inputblockdefinitiontype), dimension(*), parameter, public chf_dis2d_block_definitions
type(inputparamdefinitiontype), dimension(*), parameter, public chf_dis2d_param_definitions
type(inputparamdefinitiontype), dimension(*), parameter, public chf_disv1d_param_definitions
logical, public chf_disv1d_multi_package
type(inputparamdefinitiontype), dimension(*), parameter, public chf_disv1d_aggregate_definitions
type(inputblockdefinitiontype), dimension(*), parameter, public chf_disv1d_block_definitions
character(len=16), dimension(*), parameter, public chf_disv1d_subpackages
character(len=16), dimension(*), parameter, public chf_disv2d_subpackages
logical, public chf_disv2d_multi_package
type(inputparamdefinitiontype), dimension(*), parameter, public chf_disv2d_aggregate_definitions
type(inputblockdefinitiontype), dimension(*), parameter, public chf_disv2d_block_definitions
type(inputparamdefinitiontype), dimension(*), parameter, public chf_disv2d_param_definitions
type(inputblockdefinitiontype), dimension(*), parameter, public chf_flw_block_definitions
Definition: chf-flwidm.f90:414
logical, public chf_flw_multi_package
Definition: chf-flwidm.f90:35
type(inputparamdefinitiontype), dimension(*), parameter, public chf_flw_param_definitions
Definition: chf-flwidm.f90:367
character(len=16), dimension(*), parameter, public chf_flw_subpackages
Definition: chf-flwidm.f90:37
type(inputparamdefinitiontype), dimension(*), parameter, public chf_flw_aggregate_definitions
Definition: chf-flwidm.f90:408
logical, public chf_ic_multi_package
Definition: chf-icidm.f90:19
type(inputblockdefinitiontype), dimension(*), parameter, public chf_ic_block_definitions
Definition: chf-icidm.f90:91
character(len=16), dimension(*), parameter, public chf_ic_subpackages
Definition: chf-icidm.f90:21
type(inputparamdefinitiontype), dimension(*), parameter, public chf_ic_param_definitions
Definition: chf-icidm.f90:63
type(inputparamdefinitiontype), dimension(*), parameter, public chf_ic_aggregate_definitions
Definition: chf-icidm.f90:70
type(inputparamdefinitiontype), dimension(*), parameter, public chf_nam_aggregate_definitions
Definition: chf-namidm.f90:248
type(inputparamdefinitiontype), dimension(*), parameter, public chf_nam_param_definitions
Definition: chf-namidm.f90:215
character(len=16), dimension(*), parameter, public chf_nam_subpackages
Definition: chf-namidm.f90:29
type(inputblockdefinitiontype), dimension(*), parameter, public chf_nam_block_definitions
Definition: chf-namidm.f90:254
logical, public chf_nam_multi_package
Definition: chf-namidm.f90:27
type(inputblockdefinitiontype), dimension(*), parameter, public chf_sto_block_definitions
Definition: chf-stoidm.f90:131
logical, public chf_sto_multi_package
Definition: chf-stoidm.f90:21
type(inputparamdefinitiontype), dimension(*), parameter, public chf_sto_param_definitions
Definition: chf-stoidm.f90:101
type(inputparamdefinitiontype), dimension(*), parameter, public chf_sto_aggregate_definitions
Definition: chf-stoidm.f90:110
character(len=16), dimension(*), parameter, public chf_sto_subpackages
Definition: chf-stoidm.f90:23
logical, public chf_zdg_multi_package
Definition: chf-zdgidm.f90:37
type(inputblockdefinitiontype), dimension(*), parameter, public chf_zdg_block_definitions
Definition: chf-zdgidm.f90:454
character(len=16), dimension(*), parameter, public chf_zdg_subpackages
Definition: chf-zdgidm.f90:39
type(inputparamdefinitiontype), dimension(*), parameter, public chf_zdg_aggregate_definitions
Definition: chf-zdgidm.f90:448
type(inputparamdefinitiontype), dimension(*), parameter, public chf_zdg_param_definitions
Definition: chf-zdgidm.f90:405
This module contains simulation constants.
Definition: Constants.f90:9
integer(i4b), parameter lenvarname
maximum length of a variable name
Definition: Constants.f90:17
subroutine set_subpkg_pointer(subpkg_list, subpkg_list_target)
subroutine set_block_pointer(input_dfn, input_dfn_target)
type(inputblockdefinitiontype) function, dimension(:), pointer, public chf_block_definitions(subcomponent)
type(inputparamdefinitiontype) function, dimension(:), pointer, public chf_param_definitions(subcomponent)
subroutine set_param_pointer(input_dfn, input_dfn_target)
logical function, public chf_idm_integrated(subcomponent)
type(inputparamdefinitiontype) function, dimension(:), pointer, public chf_aggregate_definitions(subcomponent)
character(len=16) function, dimension(:), pointer, public chf_idm_subpackages(subcomponent)
logical function, public chf_idm_multi_package(subcomponent)
This module contains the InputDefinitionModule.
This module contains simulation methods.
Definition: Sim.f90:10
subroutine, public store_error(msg, terminate)
Store an error message.
Definition: Sim.f90:92