www.mooseframework.org
ModulesApp.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "ModulesApp.h"
11 #include "Factory.h"
12 #include "ActionFactory.h"
13 #include "AppFactory.h"
14 #include "MooseSyntax.h"
15 
16 #ifdef CHEMICAL_REACTIONS_ENABLED
17 #include "ChemicalReactionsApp.h"
18 #endif
19 #ifdef CONTACT_ENABLED
20 #include "ContactApp.h"
21 #endif
22 #ifdef FLUID_PROPERTIES_ENABLED
23 #include "FluidPropertiesApp.h"
24 #endif
25 #ifdef FUNCTIONAL_EXPANSION_TOOLS_ENABLED
27 #endif
28 #ifdef HEAT_CONDUCTION_ENABLED
29 #include "HeatConductionApp.h"
30 #endif
31 #ifdef LEVEL_SET_ENABLED
32 #include "LevelSetApp.h"
33 #endif
34 #ifdef MISC_ENABLED
35 #include "MiscApp.h"
36 #endif
37 #ifdef NAVIER_STOKES_ENABLED
38 #include "NavierStokesApp.h"
39 #endif
40 #ifdef PHASE_FIELD_ENABLED
41 #include "PhaseFieldApp.h"
42 #endif
43 #ifdef POROUS_FLOW_ENABLED
44 #include "PorousFlowApp.h"
45 #endif
46 #ifdef RDG_ENABLED
47 #include "RdgApp.h"
48 #endif
49 #ifdef RICHARDS_ENABLED
50 #include "RichardsApp.h"
51 #endif
52 #ifdef SOLID_MECHANICS_ENABLED
53 #include "SolidMechanicsApp.h"
54 #endif
55 #ifdef STOCHASTIC_TOOLS_ENABLED
56 #include "StochasticToolsApp.h"
57 #endif
58 #ifdef TENSOR_MECHANICS_ENABLED
59 #include "TensorMechanicsApp.h"
60 #endif
61 #ifdef XFEM_ENABLED
62 #include "XFEMApp.h"
63 #endif
64 #ifdef EXTERNAL_PETSC_SOLVER_ENABLED
65 #include "ExternalPetscSolverApp.h"
66 #endif
67 
69 
72 void
73 clearUnusedWarnings(Factory & /*factory*/)
74 {
75 }
76 void
77 clearUnusedWarnings(Syntax & /*syntax*/, ActionFactory & /*action_factory*/)
78 {
79 }
81 
82 template <>
83 InputParameters
85 {
86  InputParameters params = validParams<MooseApp>();
87  return params;
88 }
89 
90 ModulesApp::ModulesApp(const InputParameters & parameters) : MooseApp(parameters)
91 {
92  ModulesApp::registerAll(_factory, _action_factory, _syntax);
93 }
94 
96 
97 void
99 {
100  registerApp(ModulesApp);
101 }
102 
103 void
104 ModulesApp::registerObjects(Factory & factory)
105 {
106  mooseDeprecated("use ModulesApp::registerAll instead of ModulesApp::registerObjects");
107 #ifdef CHEMICAL_REACTIONS_ENABLED
109 #endif
110 
111 #ifdef CONTACT_ENABLED
113 #endif
114 
115 #ifdef FLUID_PROPERTIES_ENABLED
117 #endif
118 
119 #ifdef FUNCTIONAL_EXPANSION_TOOLS_ENABLED
121 #endif
122 
123 #ifdef HEAT_CONDUCTION_ENABLED
125 #endif
126 
127 #ifdef LEVEL_SET_ENABLED
129 #endif
130 
131 #ifdef MISC_ENABLED
132  MiscApp::registerObjects(factory);
133 #endif
134 
135 #ifdef NAVIER_STOKES_ENABLED
137 #endif
138 
139 #ifdef PHASE_FIELD_ENABLED
141 #endif
142 
143 #ifdef POROUS_FLOW_ENABLED
145 #endif
146 
147 #ifdef RDG_ENABLED
148  RdgApp::registerObjects(factory);
149 #endif
150 
151 #ifdef RICHARDS_ENABLED
153 #endif
154 
155 #ifdef SOLID_MECHANICS_ENABLED
157 #endif
158 
159 #ifdef STOCHASTIC_TOOLS_ENABLED
161 #endif
162 
163 #ifdef TENSOR_MECHANICS_ENABLED
165 #endif
166 
167 #ifdef XFEM_ENABLED
168  XFEMApp::registerObjects(factory);
169 #endif
170 
171  clearUnusedWarnings(factory);
172 }
173 
174 void
175 ModulesApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
176 {
177  mooseDeprecated("use ModulesApp::registerAll instead of ModulesApp::associateSyntax");
178 #ifdef CHEMICAL_REACTIONS_ENABLED
179  ChemicalReactionsApp::associateSyntax(syntax, action_factory);
180 #endif
181 
182 #ifdef CONTACT_ENABLED
183  ContactApp::associateSyntax(syntax, action_factory);
184 #endif
185 
186 #ifdef FLUID_PROPERTIES_ENABLED
187  FluidPropertiesApp::associateSyntax(syntax, action_factory);
188 #endif
189 
190 #ifdef FUNCTIONAL_EXPANSION_TOOLS_ENABLED
191  FunctionalExpansionToolsApp::associateSyntax(syntax, action_factory);
192 #endif
193 
194 #ifdef HEAT_CONDUCTION_ENABLED
195  HeatConductionApp::associateSyntax(syntax, action_factory);
196 #endif
197 
198 #ifdef LEVEL_SET_ENABLED
199  LevelSetApp::associateSyntax(syntax, action_factory);
200 #endif
201 
202 #ifdef MISC_ENABLED
203  MiscApp::associateSyntax(syntax, action_factory);
204 #endif
205 
206 #ifdef NAVIER_STOKES_ENABLED
207  NavierStokesApp::associateSyntax(syntax, action_factory);
208 #endif
209 
210 #ifdef PHASE_FIELD_ENABLED
211  PhaseFieldApp::associateSyntax(syntax, action_factory);
212 #endif
213 
214 #ifdef POROUS_FLOW_ENABLED
215  PorousFlowApp::associateSyntax(syntax, action_factory);
216 #endif
217 
218 #ifdef RDG_ENABLED
219  RdgApp::associateSyntax(syntax, action_factory);
220 #endif
221 
222 #ifdef RICHARDS_ENABLED
223  RichardsApp::associateSyntax(syntax, action_factory);
224 #endif
225 
226 #ifdef SOLID_MECHANICS_ENABLED
227  SolidMechanicsApp::associateSyntax(syntax, action_factory);
228 #endif
229 
230 #ifdef STOCHASTIC_TOOLS_ENABLED
231  StochasticToolsApp::associateSyntax(syntax, action_factory);
232 #endif
233 
234 #ifdef TENSOR_MECHANICS_ENABLED
235  TensorMechanicsApp::associateSyntax(syntax, action_factory);
236 #endif
237 
238 #ifdef XFEM_ENABLED
239  XFEMApp::associateSyntax(syntax, action_factory);
240 #endif
241 
242  clearUnusedWarnings(syntax, action_factory);
243 }
244 
245 void
247 {
248  mooseDeprecated("use registerAll instead of registerExecFlags");
249 #ifdef CHEMICAL_REACTIONS_ENABLED
251 #endif
252 
253 #ifdef CONTACT_ENABLED
255 #endif
256 
257 #ifdef FLUID_PROPERTIES_ENABLED
259 #endif
260 
261 #ifdef HEAT_CONDUCTION_ENABLED
263 #endif
264 
265 #ifdef LEVEL_SET_ENABLED
267 #endif
268 
269 #ifdef MISC_ENABLED
271 #endif
272 
273 #ifdef NAVIER_STOKES_ENABLED
275 #endif
276 
277 #ifdef PHASE_FIELD_ENABLED
279 #endif
280 
281 #ifdef POROUS_FLOW_ENABLED
283 #endif
284 
285 #ifdef RDG_ENABLED
286  RdgApp::registerExecFlags(factory);
287 #endif
288 
289 #ifdef RICHARDS_ENABLED
291 #endif
292 
293 #ifdef SOLID_MECHANICS_ENABLED
295 #endif
296 
297 #ifdef STOCHASTIC_TOOLS_ENABLED
299 #endif
300 
301 #ifdef TENSOR_MECHANICS_ENABLED
303 #endif
304 
305 #ifdef XFEM_ENABLED
307 #endif
308 
309  clearUnusedWarnings(factory);
310 }
311 
312 void
313 ModulesApp::registerAll(Factory & f, ActionFactory & af, Syntax & s)
314 {
315 #ifdef CHEMICAL_REACTIONS_ENABLED
317 #endif
318 
319 #ifdef CONTACT_ENABLED
320  ContactApp::registerAll(f, af, s);
321 #endif
322 
323 #ifdef FLUID_PROPERTIES_ENABLED
325 #endif
326 
327 #ifdef HEAT_CONDUCTION_ENABLED
329 #endif
330 
331 #ifdef LEVEL_SET_ENABLED
332  LevelSetApp::registerAll(f, af, s);
333 #endif
334 
335 #ifdef MISC_ENABLED
336  MiscApp::registerAll(f, af, s);
337 #endif
338 
339 #ifdef NAVIER_STOKES_ENABLED
341 #endif
342 
343 #ifdef PHASE_FIELD_ENABLED
344  PhaseFieldApp::registerAll(f, af, s);
345 #endif
346 
347 #ifdef POROUS_FLOW_ENABLED
348  PorousFlowApp::registerAll(f, af, s);
349 #endif
350 
351 #ifdef RDG_ENABLED
352  RdgApp::registerAll(f, af, s);
353 #endif
354 
355 #ifdef RICHARDS_ENABLED
356  RichardsApp::registerAll(f, af, s);
357 #endif
358 
359 #ifdef SOLID_MECHANICS_ENABLED
361 #endif
362 
363 #ifdef STOCHASTIC_TOOLS_ENABLED
365 #endif
366 
367 #ifdef TENSOR_MECHANICS_ENABLED
369 #endif
370 
371 #ifdef XFEM_ENABLED
372  XFEMApp::registerAll(f, af, s);
373 #endif
374 
375 #ifdef EXTERNAL_PETSC_SOLVER_ENABLED
377 #endif
378 
380  clearUnusedWarnings(s, af);
381 }
382 
383 extern "C" void
384 ModulesApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
385 {
386  ModulesApp::registerAll(f, af, s);
387 }
388 
389 extern "C" void
391 {
393 }
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
void ModulesApp__registerApps()
Definition: ModulesApp.C:390
static void registerObjects(Factory &factory)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
void ModulesApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ModulesApp.C:384
static void registerExecFlags(Factory &factory)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerExecFlags(Factory &factory)
Definition: ModulesApp.C:246
static void registerExecFlags(Factory &factory)
Definition: RdgApp.C:60
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: MiscApp.C:33
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: LevelSetApp.C:48
static void registerObjects(Factory &factory)
Definition: LevelSetApp.C:56
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerObjects(Factory &factory)
static void registerObjects(Factory &factory)
Definition: ModulesApp.C:104
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: PorousFlowApp.C:71
static void registerObjects(Factory &factory)
static void registerObjects(Factory &factory)
Definition: ContactApp.C:65
static void registerExecFlags(Factory &factory)
static void registerExecFlags(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: MiscApp.C:52
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: ContactApp.C:72
static void registerObjects(Factory &factory)
static void registerObjects(Factory &factory)
Definition: RdgApp.C:46
static void registerExecFlags(Factory &factory)
Definition: ContactApp.C:80
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: XFEMApp.C:44
static void registerExecFlags(Factory &factory)
Definition: LevelSetApp.C:69
static void registerApps()
Definition: ModulesApp.C:98
static void registerObjects(Factory &factory)
static void registerObjects(Factory &factory)
Definition: XFEMApp.C:72
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: PhaseFieldApp.C:88
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: PhaseFieldApp.C:67
ModulesApp(const InputParameters &parameters)
Definition: ModulesApp.C:90
static void registerExecFlags(Factory &factory)
Definition: MiscApp.C:58
static void registerObjects(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerObjects(Factory &factory)
Definition: RichardsApp.C:57
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: RichardsApp.C:43
InputParameters validParams< ModulesApp >()
Definition: ModulesApp.C:84
static void registerObjects(Factory &factory)
Definition: PhaseFieldApp.C:81
virtual ~ModulesApp()
Definition: ModulesApp.C:95
static void registerObjects(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: LevelSetApp.C:63
static void registerObjects(Factory &factory)
Definition: PorousFlowApp.C:93
static void registerExecFlags(Factory &factory)
Definition: XFEMApp.C:95
static void registerExecFlags(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: RdgApp.C:53
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerExecFlags(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerObjects(Factory &factory)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: RdgApp.C:33
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: RichardsApp.C:64
static void registerExecFlags(Factory &factory)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ModulesApp.C:313
static void registerExecFlags(Factory &factory)
Definition: RichardsApp.C:72
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerExecFlags(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: XFEMApp.C:87
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerExecFlags(Factory &factory)
Definition: PhaseFieldApp.C:96
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: ModulesApp.C:175
static void registerExecFlags(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
void clearUnusedWarnings(Factory &)
Dummy methods to clear unused parameter warnings from compiler.
Definition: ModulesApp.C:73
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ContactApp.C:51
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerObjects(Factory &factory)
Definition: MiscApp.C:46