MODFLOW 6  version 6.6.0.dev0
USGS Modular Hydrologic Model
IdmOlfDfnSelector.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 :: olf_param_definitions
25  public :: olf_block_definitions
26  public :: olf_idm_multi_package
27  public :: olf_idm_subpackages
28  public :: olf_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 olf_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, olf_nam_param_definitions)
57  case ('DISV1D')
58  call set_param_pointer(input_definition, olf_disv1d_param_definitions)
59  case ('DIS2D')
60  call set_param_pointer(input_definition, olf_dis2d_param_definitions)
61  case ('DISV2D')
62  call set_param_pointer(input_definition, olf_disv2d_param_definitions)
63  case ('CXS')
64  call set_param_pointer(input_definition, olf_cxs_param_definitions)
65  case ('DFW')
66  call set_param_pointer(input_definition, olf_dfw_param_definitions)
67  case ('IC')
68  call set_param_pointer(input_definition, olf_ic_param_definitions)
69  case ('CDB')
70  call set_param_pointer(input_definition, olf_cdb_param_definitions)
71  case ('CHD')
72  call set_param_pointer(input_definition, olf_chd_param_definitions)
73  case ('FLW')
74  call set_param_pointer(input_definition, olf_flw_param_definitions)
75  case ('STO')
76  call set_param_pointer(input_definition, olf_sto_param_definitions)
77  case ('ZDG')
78  call set_param_pointer(input_definition, olf_zdg_param_definitions)
79  case default
80  end select
81  return
82  end function olf_param_definitions
83 
84  function olf_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, olf_nam_aggregate_definitions)
91  case ('DISV1D')
93  case ('DIS2D')
95  case ('DISV2D')
97  case ('CXS')
98  call set_param_pointer(input_definition, olf_cxs_aggregate_definitions)
99  case ('DFW')
100  call set_param_pointer(input_definition, olf_dfw_aggregate_definitions)
101  case ('IC')
102  call set_param_pointer(input_definition, olf_ic_aggregate_definitions)
103  case ('CDB')
104  call set_param_pointer(input_definition, olf_cdb_aggregate_definitions)
105  case ('CHD')
106  call set_param_pointer(input_definition, olf_chd_aggregate_definitions)
107  case ('FLW')
108  call set_param_pointer(input_definition, olf_flw_aggregate_definitions)
109  case ('STO')
110  call set_param_pointer(input_definition, olf_sto_aggregate_definitions)
111  case ('ZDG')
112  call set_param_pointer(input_definition, olf_zdg_aggregate_definitions)
113  case default
114  end select
115  return
116  end function olf_aggregate_definitions
117 
118  function olf_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, olf_nam_block_definitions)
125  case ('DISV1D')
126  call set_block_pointer(input_definition, olf_disv1d_block_definitions)
127  case ('DIS2D')
128  call set_block_pointer(input_definition, olf_dis2d_block_definitions)
129  case ('DISV2D')
130  call set_block_pointer(input_definition, olf_disv2d_block_definitions)
131  case ('CXS')
132  call set_block_pointer(input_definition, olf_cxs_block_definitions)
133  case ('DFW')
134  call set_block_pointer(input_definition, olf_dfw_block_definitions)
135  case ('IC')
136  call set_block_pointer(input_definition, olf_ic_block_definitions)
137  case ('CDB')
138  call set_block_pointer(input_definition, olf_cdb_block_definitions)
139  case ('CHD')
140  call set_block_pointer(input_definition, olf_chd_block_definitions)
141  case ('FLW')
142  call set_block_pointer(input_definition, olf_flw_block_definitions)
143  case ('STO')
144  call set_block_pointer(input_definition, olf_sto_block_definitions)
145  case ('ZDG')
146  call set_block_pointer(input_definition, olf_zdg_block_definitions)
147  case default
148  end select
149  return
150  end function olf_block_definitions
151 
152  function olf_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 = olf_nam_multi_package
158  case ('DISV1D')
159  multi_package = olf_disv1d_multi_package
160  case ('DIS2D')
161  multi_package = olf_dis2d_multi_package
162  case ('DISV2D')
163  multi_package = olf_disv2d_multi_package
164  case ('CXS')
165  multi_package = olf_cxs_multi_package
166  case ('DFW')
167  multi_package = olf_dfw_multi_package
168  case ('IC')
169  multi_package = olf_ic_multi_package
170  case ('CDB')
171  multi_package = olf_cdb_multi_package
172  case ('CHD')
173  multi_package = olf_chd_multi_package
174  case ('FLW')
175  multi_package = olf_flw_multi_package
176  case ('STO')
177  multi_package = olf_sto_multi_package
178  case ('ZDG')
179  multi_package = olf_zdg_multi_package
180  case default
181  call store_error('Idm selector subcomponent not found; '//&
182  &'component="OLF"'//&
183  &', subcomponent="'//trim(subcomponent)//'".', .true.)
184  end select
185  return
186  end function olf_idm_multi_package
187 
188  function olf_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, olf_nam_subpackages)
194  case ('DISV1D')
195  call set_subpkg_pointer(subpackages, olf_disv1d_subpackages)
196  case ('DIS2D')
197  call set_subpkg_pointer(subpackages, olf_dis2d_subpackages)
198  case ('DISV2D')
199  call set_subpkg_pointer(subpackages, olf_disv2d_subpackages)
200  case ('CXS')
201  call set_subpkg_pointer(subpackages, olf_cxs_subpackages)
202  case ('DFW')
203  call set_subpkg_pointer(subpackages, olf_dfw_subpackages)
204  case ('IC')
205  call set_subpkg_pointer(subpackages, olf_ic_subpackages)
206  case ('CDB')
207  call set_subpkg_pointer(subpackages, olf_cdb_subpackages)
208  case ('CHD')
209  call set_subpkg_pointer(subpackages, olf_chd_subpackages)
210  case ('FLW')
211  call set_subpkg_pointer(subpackages, olf_flw_subpackages)
212  case ('STO')
213  call set_subpkg_pointer(subpackages, olf_sto_subpackages)
214  case ('ZDG')
215  call set_subpkg_pointer(subpackages, olf_zdg_subpackages)
216  case default
217  end select
218  return
219  end function olf_idm_subpackages
220 
221  function olf_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 olf_idm_integrated
254 
255 end module idmolfdfnselectormodule
This module contains simulation constants.
Definition: Constants.f90:9
integer(i4b), parameter lenvarname
maximum length of a variable name
Definition: Constants.f90:17
logical function, public olf_idm_integrated(subcomponent)
type(inputparamdefinitiontype) function, dimension(:), pointer, public olf_param_definitions(subcomponent)
subroutine set_param_pointer(input_dfn, input_dfn_target)
character(len=16) function, dimension(:), pointer, public olf_idm_subpackages(subcomponent)
type(inputparamdefinitiontype) function, dimension(:), pointer, public olf_aggregate_definitions(subcomponent)
type(inputblockdefinitiontype) function, dimension(:), pointer, public olf_block_definitions(subcomponent)
subroutine set_subpkg_pointer(subpkg_list, subpkg_list_target)
subroutine set_block_pointer(input_dfn, input_dfn_target)
logical function, public olf_idm_multi_package(subcomponent)
This module contains the InputDefinitionModule.
character(len=16), dimension(*), parameter, public olf_cdb_subpackages
Definition: olf-cdbidm.f90:34
type(inputparamdefinitiontype), dimension(*), parameter, public olf_cdb_param_definitions
Definition: olf-cdbidm.f90:310
type(inputblockdefinitiontype), dimension(*), parameter, public olf_cdb_block_definitions
Definition: olf-cdbidm.f90:354
type(inputparamdefinitiontype), dimension(*), parameter, public olf_cdb_aggregate_definitions
Definition: olf-cdbidm.f90:348
logical, public olf_cdb_multi_package
Definition: olf-cdbidm.f90:32
type(inputparamdefinitiontype), dimension(*), parameter, public olf_chd_aggregate_definitions
Definition: olf-chdidm.f90:408
character(len=16), dimension(*), parameter, public olf_chd_subpackages
Definition: olf-chdidm.f90:37
logical, public olf_chd_multi_package
Definition: olf-chdidm.f90:35
type(inputparamdefinitiontype), dimension(*), parameter, public olf_chd_param_definitions
Definition: olf-chdidm.f90:367
type(inputblockdefinitiontype), dimension(*), parameter, public olf_chd_block_definitions
Definition: olf-chdidm.f90:414
type(inputblockdefinitiontype), dimension(*), parameter, public olf_cxs_block_definitions
Definition: olf-cxsidm.f90:233
type(inputparamdefinitiontype), dimension(*), parameter, public olf_cxs_param_definitions
Definition: olf-cxsidm.f90:177
type(inputparamdefinitiontype), dimension(*), parameter, public olf_cxs_aggregate_definitions
Definition: olf-cxsidm.f90:226
character(len=16), dimension(*), parameter, public olf_cxs_subpackages
Definition: olf-cxsidm.f90:27
logical, public olf_cxs_multi_package
Definition: olf-cxsidm.f90:25
type(inputblockdefinitiontype), dimension(*), parameter, public olf_dfw_block_definitions
Definition: olf-dfwidm.f90:331
logical, public olf_dfw_multi_package
Definition: olf-dfwidm.f90:31
type(inputparamdefinitiontype), dimension(*), parameter, public olf_dfw_aggregate_definitions
Definition: olf-dfwidm.f90:310
character(len=16), dimension(*), parameter, public olf_dfw_subpackages
Definition: olf-dfwidm.f90:33
type(inputparamdefinitiontype), dimension(*), parameter, public olf_dfw_param_definitions
Definition: olf-dfwidm.f90:291
logical, public olf_dis2d_multi_package
type(inputparamdefinitiontype), dimension(*), parameter, public olf_dis2d_aggregate_definitions
character(len=16), dimension(*), parameter, public olf_dis2d_subpackages
type(inputparamdefinitiontype), dimension(*), parameter, public olf_dis2d_param_definitions
type(inputblockdefinitiontype), dimension(*), parameter, public olf_dis2d_block_definitions
type(inputparamdefinitiontype), dimension(*), parameter, public olf_disv1d_param_definitions
type(inputparamdefinitiontype), dimension(*), parameter, public olf_disv1d_aggregate_definitions
character(len=16), dimension(*), parameter, public olf_disv1d_subpackages
logical, public olf_disv1d_multi_package
type(inputblockdefinitiontype), dimension(*), parameter, public olf_disv1d_block_definitions
type(inputparamdefinitiontype), dimension(*), parameter, public olf_disv2d_param_definitions
logical, public olf_disv2d_multi_package
type(inputblockdefinitiontype), dimension(*), parameter, public olf_disv2d_block_definitions
character(len=16), dimension(*), parameter, public olf_disv2d_subpackages
type(inputparamdefinitiontype), dimension(*), parameter, public olf_disv2d_aggregate_definitions
type(inputparamdefinitiontype), dimension(*), parameter, public olf_flw_aggregate_definitions
Definition: olf-flwidm.f90:408
type(inputblockdefinitiontype), dimension(*), parameter, public olf_flw_block_definitions
Definition: olf-flwidm.f90:414
character(len=16), dimension(*), parameter, public olf_flw_subpackages
Definition: olf-flwidm.f90:37
logical, public olf_flw_multi_package
Definition: olf-flwidm.f90:35
type(inputparamdefinitiontype), dimension(*), parameter, public olf_flw_param_definitions
Definition: olf-flwidm.f90:367
type(inputblockdefinitiontype), dimension(*), parameter, public olf_ic_block_definitions
Definition: olf-icidm.f90:91
type(inputparamdefinitiontype), dimension(*), parameter, public olf_ic_param_definitions
Definition: olf-icidm.f90:63
logical, public olf_ic_multi_package
Definition: olf-icidm.f90:19
character(len=16), dimension(*), parameter, public olf_ic_subpackages
Definition: olf-icidm.f90:21
type(inputparamdefinitiontype), dimension(*), parameter, public olf_ic_aggregate_definitions
Definition: olf-icidm.f90:70
type(inputparamdefinitiontype), dimension(*), parameter, public olf_nam_param_definitions
Definition: olf-namidm.f90:215
type(inputparamdefinitiontype), dimension(*), parameter, public olf_nam_aggregate_definitions
Definition: olf-namidm.f90:248
logical, public olf_nam_multi_package
Definition: olf-namidm.f90:27
type(inputblockdefinitiontype), dimension(*), parameter, public olf_nam_block_definitions
Definition: olf-namidm.f90:254
character(len=16), dimension(*), parameter, public olf_nam_subpackages
Definition: olf-namidm.f90:29
type(inputblockdefinitiontype), dimension(*), parameter, public olf_sto_block_definitions
Definition: olf-stoidm.f90:131
logical, public olf_sto_multi_package
Definition: olf-stoidm.f90:21
type(inputparamdefinitiontype), dimension(*), parameter, public olf_sto_aggregate_definitions
Definition: olf-stoidm.f90:110
character(len=16), dimension(*), parameter, public olf_sto_subpackages
Definition: olf-stoidm.f90:23
type(inputparamdefinitiontype), dimension(*), parameter, public olf_sto_param_definitions
Definition: olf-stoidm.f90:101
character(len=16), dimension(*), parameter, public olf_zdg_subpackages
Definition: olf-zdgidm.f90:39
type(inputparamdefinitiontype), dimension(*), parameter, public olf_zdg_param_definitions
Definition: olf-zdgidm.f90:405
logical, public olf_zdg_multi_package
Definition: olf-zdgidm.f90:37
type(inputblockdefinitiontype), dimension(*), parameter, public olf_zdg_block_definitions
Definition: olf-zdgidm.f90:454
type(inputparamdefinitiontype), dimension(*), parameter, public olf_zdg_aggregate_definitions
Definition: olf-zdgidm.f90:448
This module contains simulation methods.
Definition: Sim.f90:10
subroutine, public store_error(msg, terminate)
Store an error message.
Definition: Sim.f90:92