MODFLOW 6  version 6.7.0.dev0
USGS Modular Hydrologic Model
IdmSwfDfnSelector.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 :: swf_param_definitions
25  public :: swf_block_definitions
26  public :: swf_idm_multi_package
27  public :: swf_idm_subpackages
28  public :: swf_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 swf_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, swf_nam_param_definitions)
57  case ('DISV1D')
58  call set_param_pointer(input_definition, swf_disv1d_param_definitions)
59  case ('DIS2D')
60  call set_param_pointer(input_definition, swf_dis2d_param_definitions)
61  case ('DISV2D')
62  call set_param_pointer(input_definition, swf_disv2d_param_definitions)
63  case ('CXS')
64  call set_param_pointer(input_definition, swf_cxs_param_definitions)
65  case ('DFW')
66  call set_param_pointer(input_definition, swf_dfw_param_definitions)
67  case ('IC')
68  call set_param_pointer(input_definition, swf_ic_param_definitions)
69  case ('CDB')
70  call set_param_pointer(input_definition, swf_cdb_param_definitions)
71  case ('CHD')
72  call set_param_pointer(input_definition, swf_chd_param_definitions)
73  case ('FLW')
74  call set_param_pointer(input_definition, swf_flw_param_definitions)
75  case ('STO')
76  call set_param_pointer(input_definition, swf_sto_param_definitions)
77  case ('ZDG')
78  call set_param_pointer(input_definition, swf_zdg_param_definitions)
79  case default
80  end select
81  return
82  end function swf_param_definitions
83 
84  function swf_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, swf_nam_aggregate_definitions)
91  case ('DISV1D')
93  case ('DIS2D')
95  case ('DISV2D')
97  case ('CXS')
98  call set_param_pointer(input_definition, swf_cxs_aggregate_definitions)
99  case ('DFW')
100  call set_param_pointer(input_definition, swf_dfw_aggregate_definitions)
101  case ('IC')
102  call set_param_pointer(input_definition, swf_ic_aggregate_definitions)
103  case ('CDB')
104  call set_param_pointer(input_definition, swf_cdb_aggregate_definitions)
105  case ('CHD')
106  call set_param_pointer(input_definition, swf_chd_aggregate_definitions)
107  case ('FLW')
108  call set_param_pointer(input_definition, swf_flw_aggregate_definitions)
109  case ('STO')
110  call set_param_pointer(input_definition, swf_sto_aggregate_definitions)
111  case ('ZDG')
112  call set_param_pointer(input_definition, swf_zdg_aggregate_definitions)
113  case default
114  end select
115  return
116  end function swf_aggregate_definitions
117 
118  function swf_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, swf_nam_block_definitions)
125  case ('DISV1D')
126  call set_block_pointer(input_definition, swf_disv1d_block_definitions)
127  case ('DIS2D')
128  call set_block_pointer(input_definition, swf_dis2d_block_definitions)
129  case ('DISV2D')
130  call set_block_pointer(input_definition, swf_disv2d_block_definitions)
131  case ('CXS')
132  call set_block_pointer(input_definition, swf_cxs_block_definitions)
133  case ('DFW')
134  call set_block_pointer(input_definition, swf_dfw_block_definitions)
135  case ('IC')
136  call set_block_pointer(input_definition, swf_ic_block_definitions)
137  case ('CDB')
138  call set_block_pointer(input_definition, swf_cdb_block_definitions)
139  case ('CHD')
140  call set_block_pointer(input_definition, swf_chd_block_definitions)
141  case ('FLW')
142  call set_block_pointer(input_definition, swf_flw_block_definitions)
143  case ('STO')
144  call set_block_pointer(input_definition, swf_sto_block_definitions)
145  case ('ZDG')
146  call set_block_pointer(input_definition, swf_zdg_block_definitions)
147  case default
148  end select
149  return
150  end function swf_block_definitions
151 
152  function swf_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 = swf_nam_multi_package
158  case ('DISV1D')
159  multi_package = swf_disv1d_multi_package
160  case ('DIS2D')
161  multi_package = swf_dis2d_multi_package
162  case ('DISV2D')
163  multi_package = swf_disv2d_multi_package
164  case ('CXS')
165  multi_package = swf_cxs_multi_package
166  case ('DFW')
167  multi_package = swf_dfw_multi_package
168  case ('IC')
169  multi_package = swf_ic_multi_package
170  case ('CDB')
171  multi_package = swf_cdb_multi_package
172  case ('CHD')
173  multi_package = swf_chd_multi_package
174  case ('FLW')
175  multi_package = swf_flw_multi_package
176  case ('STO')
177  multi_package = swf_sto_multi_package
178  case ('ZDG')
179  multi_package = swf_zdg_multi_package
180  case default
181  call store_error('Idm selector subcomponent not found; '//&
182  &'component="SWF"'//&
183  &', subcomponent="'//trim(subcomponent)//'".', .true.)
184  end select
185  return
186  end function swf_idm_multi_package
187 
188  function swf_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, swf_nam_subpackages)
194  case ('DISV1D')
195  call set_subpkg_pointer(subpackages, swf_disv1d_subpackages)
196  case ('DIS2D')
197  call set_subpkg_pointer(subpackages, swf_dis2d_subpackages)
198  case ('DISV2D')
199  call set_subpkg_pointer(subpackages, swf_disv2d_subpackages)
200  case ('CXS')
201  call set_subpkg_pointer(subpackages, swf_cxs_subpackages)
202  case ('DFW')
203  call set_subpkg_pointer(subpackages, swf_dfw_subpackages)
204  case ('IC')
205  call set_subpkg_pointer(subpackages, swf_ic_subpackages)
206  case ('CDB')
207  call set_subpkg_pointer(subpackages, swf_cdb_subpackages)
208  case ('CHD')
209  call set_subpkg_pointer(subpackages, swf_chd_subpackages)
210  case ('FLW')
211  call set_subpkg_pointer(subpackages, swf_flw_subpackages)
212  case ('STO')
213  call set_subpkg_pointer(subpackages, swf_sto_subpackages)
214  case ('ZDG')
215  call set_subpkg_pointer(subpackages, swf_zdg_subpackages)
216  case default
217  end select
218  return
219  end function swf_idm_subpackages
220 
221  function swf_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 swf_idm_integrated
254 
255 end module idmswfdfnselectormodule
This module contains simulation constants.
Definition: Constants.f90:9
integer(i4b), parameter lenvarname
maximum length of a variable name
Definition: Constants.f90:17
character(len=16) function, dimension(:), pointer, public swf_idm_subpackages(subcomponent)
subroutine set_subpkg_pointer(subpkg_list, subpkg_list_target)
subroutine set_param_pointer(input_dfn, input_dfn_target)
subroutine set_block_pointer(input_dfn, input_dfn_target)
type(inputparamdefinitiontype) function, dimension(:), pointer, public swf_aggregate_definitions(subcomponent)
type(inputparamdefinitiontype) function, dimension(:), pointer, public swf_param_definitions(subcomponent)
logical function, public swf_idm_integrated(subcomponent)
type(inputblockdefinitiontype) function, dimension(:), pointer, public swf_block_definitions(subcomponent)
logical function, public swf_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
logical, public swf_cdb_multi_package
Definition: swf-cdbidm.f90:32
type(inputparamdefinitiontype), dimension(*), parameter, public swf_cdb_param_definitions
Definition: swf-cdbidm.f90:310
type(inputparamdefinitiontype), dimension(*), parameter, public swf_cdb_aggregate_definitions
Definition: swf-cdbidm.f90:348
type(inputblockdefinitiontype), dimension(*), parameter, public swf_cdb_block_definitions
Definition: swf-cdbidm.f90:354
character(len=16), dimension(*), parameter, public swf_cdb_subpackages
Definition: swf-cdbidm.f90:34
type(inputblockdefinitiontype), dimension(*), parameter, public swf_chd_block_definitions
Definition: swf-chdidm.f90:414
character(len=16), dimension(*), parameter, public swf_chd_subpackages
Definition: swf-chdidm.f90:37
type(inputparamdefinitiontype), dimension(*), parameter, public swf_chd_param_definitions
Definition: swf-chdidm.f90:367
type(inputparamdefinitiontype), dimension(*), parameter, public swf_chd_aggregate_definitions
Definition: swf-chdidm.f90:408
logical, public swf_chd_multi_package
Definition: swf-chdidm.f90:35
type(inputparamdefinitiontype), dimension(*), parameter, public swf_cxs_aggregate_definitions
Definition: swf-cxsidm.f90:226
type(inputparamdefinitiontype), dimension(*), parameter, public swf_cxs_param_definitions
Definition: swf-cxsidm.f90:177
type(inputblockdefinitiontype), dimension(*), parameter, public swf_cxs_block_definitions
Definition: swf-cxsidm.f90:233
character(len=16), dimension(*), parameter, public swf_cxs_subpackages
Definition: swf-cxsidm.f90:27
logical, public swf_cxs_multi_package
Definition: swf-cxsidm.f90:25
logical, public swf_dfw_multi_package
Definition: swf-dfwidm.f90:31
type(inputparamdefinitiontype), dimension(*), parameter, public swf_dfw_param_definitions
Definition: swf-dfwidm.f90:291
type(inputparamdefinitiontype), dimension(*), parameter, public swf_dfw_aggregate_definitions
Definition: swf-dfwidm.f90:310
character(len=16), dimension(*), parameter, public swf_dfw_subpackages
Definition: swf-dfwidm.f90:33
type(inputblockdefinitiontype), dimension(*), parameter, public swf_dfw_block_definitions
Definition: swf-dfwidm.f90:331
type(inputblockdefinitiontype), dimension(*), parameter, public swf_dis2d_block_definitions
type(inputparamdefinitiontype), dimension(*), parameter, public swf_dis2d_param_definitions
character(len=16), dimension(*), parameter, public swf_dis2d_subpackages
type(inputparamdefinitiontype), dimension(*), parameter, public swf_dis2d_aggregate_definitions
logical, public swf_dis2d_multi_package
character(len=16), dimension(*), parameter, public swf_disv1d_subpackages
type(inputparamdefinitiontype), dimension(*), parameter, public swf_disv1d_aggregate_definitions
type(inputblockdefinitiontype), dimension(*), parameter, public swf_disv1d_block_definitions
type(inputparamdefinitiontype), dimension(*), parameter, public swf_disv1d_param_definitions
logical, public swf_disv1d_multi_package
character(len=16), dimension(*), parameter, public swf_disv2d_subpackages
logical, public swf_disv2d_multi_package
type(inputparamdefinitiontype), dimension(*), parameter, public swf_disv2d_aggregate_definitions
type(inputblockdefinitiontype), dimension(*), parameter, public swf_disv2d_block_definitions
type(inputparamdefinitiontype), dimension(*), parameter, public swf_disv2d_param_definitions
type(inputblockdefinitiontype), dimension(*), parameter, public swf_flw_block_definitions
Definition: swf-flwidm.f90:414
type(inputparamdefinitiontype), dimension(*), parameter, public swf_flw_aggregate_definitions
Definition: swf-flwidm.f90:408
logical, public swf_flw_multi_package
Definition: swf-flwidm.f90:35
character(len=16), dimension(*), parameter, public swf_flw_subpackages
Definition: swf-flwidm.f90:37
type(inputparamdefinitiontype), dimension(*), parameter, public swf_flw_param_definitions
Definition: swf-flwidm.f90:367
character(len=16), dimension(*), parameter, public swf_ic_subpackages
Definition: swf-icidm.f90:21
type(inputblockdefinitiontype), dimension(*), parameter, public swf_ic_block_definitions
Definition: swf-icidm.f90:91
type(inputparamdefinitiontype), dimension(*), parameter, public swf_ic_aggregate_definitions
Definition: swf-icidm.f90:70
logical, public swf_ic_multi_package
Definition: swf-icidm.f90:19
type(inputparamdefinitiontype), dimension(*), parameter, public swf_ic_param_definitions
Definition: swf-icidm.f90:63
logical, public swf_nam_multi_package
Definition: swf-namidm.f90:27
type(inputblockdefinitiontype), dimension(*), parameter, public swf_nam_block_definitions
Definition: swf-namidm.f90:254
type(inputparamdefinitiontype), dimension(*), parameter, public swf_nam_param_definitions
Definition: swf-namidm.f90:215
type(inputparamdefinitiontype), dimension(*), parameter, public swf_nam_aggregate_definitions
Definition: swf-namidm.f90:248
character(len=16), dimension(*), parameter, public swf_nam_subpackages
Definition: swf-namidm.f90:29
type(inputblockdefinitiontype), dimension(*), parameter, public swf_sto_block_definitions
Definition: swf-stoidm.f90:131
logical, public swf_sto_multi_package
Definition: swf-stoidm.f90:21
character(len=16), dimension(*), parameter, public swf_sto_subpackages
Definition: swf-stoidm.f90:23
type(inputparamdefinitiontype), dimension(*), parameter, public swf_sto_aggregate_definitions
Definition: swf-stoidm.f90:110
type(inputparamdefinitiontype), dimension(*), parameter, public swf_sto_param_definitions
Definition: swf-stoidm.f90:101
type(inputblockdefinitiontype), dimension(*), parameter, public swf_zdg_block_definitions
Definition: swf-zdgidm.f90:454
type(inputparamdefinitiontype), dimension(*), parameter, public swf_zdg_param_definitions
Definition: swf-zdgidm.f90:405
type(inputparamdefinitiontype), dimension(*), parameter, public swf_zdg_aggregate_definitions
Definition: swf-zdgidm.f90:448
character(len=16), dimension(*), parameter, public swf_zdg_subpackages
Definition: swf-zdgidm.f90:39
logical, public swf_zdg_multi_package
Definition: swf-zdgidm.f90:37