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 ELECTROMAGNETICS_ENABLED
23 #include "ElectromagneticsApp.h"
24 #endif
25 #ifdef FLUID_PROPERTIES_ENABLED
26 #include "FluidPropertiesApp.h"
27 #endif
28 #ifdef FSI_ENABLED
29 #include "FsiApp.h"
30 #endif
31 #ifdef FUNCTIONAL_EXPANSION_TOOLS_ENABLED
33 #endif
34 #ifdef GEOCHEMISTRY_ENABLED
35 #include "GeochemistryApp.h"
36 #endif
37 #ifdef HEAT_TRANSFER_ENABLED
38 #include "HeatTransferApp.h"
39 #endif
40 #ifdef LEVEL_SET_ENABLED
41 #include "LevelSetApp.h"
42 #endif
43 #ifdef MISC_ENABLED
44 #include "MiscApp.h"
45 #endif
46 #ifdef NAVIER_STOKES_ENABLED
47 #include "NavierStokesApp.h"
48 #endif
49 #ifdef OPTIMIZATION_ENABLED
50 #include "OptimizationApp.h"
51 #endif
52 #ifdef PERIDYNAMICS_ENABLED
53 #include "PeridynamicsApp.h"
54 #endif
55 #ifdef PHASE_FIELD_ENABLED
56 #include "PhaseFieldApp.h"
57 #endif
58 #ifdef POROUS_FLOW_ENABLED
59 #include "PorousFlowApp.h"
60 #endif
61 #ifdef RAY_TRACING_ENABLED
62 #include "RayTracingApp.h"
63 #endif
64 #ifdef RDG_ENABLED
65 #include "RdgApp.h"
66 #endif
67 #ifdef REACTOR_ENABLED
68 #include "ReactorApp.h"
69 #endif
70 #ifdef RICHARDS_ENABLED
71 #include "RichardsApp.h"
72 #endif
73 #ifdef SCALAR_TRANSPORT_ENABLED
74 #include "ScalarTransportApp.h"
75 #endif
76 #ifdef SOLID_MECHANICS_ENABLED
77 #include "SolidMechanicsApp.h"
78 #endif
79 #ifdef SOLID_PROPERTIES_ENABLED
80 #include "SolidPropertiesApp.h"
81 #endif
82 #ifdef STOCHASTIC_TOOLS_ENABLED
83 #include "StochasticToolsApp.h"
84 #endif
85 #ifdef THERMAL_HYDRAULICS_ENABLED
86 #include "ThermalHydraulicsApp.h"
87 #endif
88 #ifdef XFEM_ENABLED
89 #include "XFEMApp.h"
90 #endif
91 #ifdef EXTERNAL_PETSC_SOLVER_ENABLED
92 #include "ExternalPetscSolverApp.h"
93 #endif
94 
97 {
99  return params;
100 }
101 
102 ModulesApp::ModulesApp(const InputParameters & parameters) : MooseApp(parameters)
103 {
105 }
106 
108 
109 void
111 {
112  registerApp(ModulesApp);
113 
114 #ifdef CHEMICAL_REACTIONS_ENABLED
116 #endif
117 
118 #ifdef CONTACT_ENABLED
120 #endif
121 
122 #ifdef ELECTROMAGNETICS_ENABLED
124 #endif
125 
126 #ifdef FLUID_PROPERTIES_ENABLED
128 #endif
129 
130 #ifdef FUNCTIONAL_EXPANSION_TOOLS_ENABLED
132 #endif
133 
134 #ifdef HEAT_TRANSFER_ENABLED
136 #endif
137 
138 #ifdef LEVEL_SET_ENABLED
140 #endif
141 
142 #ifdef MISC_ENABLED
144 #endif
145 
146 #ifdef NAVIER_STOKES_ENABLED
148 #endif
149 
150 #ifdef PERIDYNAMICS_ENABLED
152 #endif
153 
154 #ifdef PHASE_FIELD_ENABLED
156 #endif
157 
158 #ifdef POROUS_FLOW_ENABLED
160 #endif
161 
162 #ifdef RAY_TRACING_ENABLED
164 #endif
165 
166 #ifdef RDG_ENABLED
168 #endif
169 
170 #ifdef REACTOR_ENABLED
172 #endif
173 
174 #ifdef RICHARDS_ENABLED
176 #endif
177 
178 #ifdef SOLID_MECHANICS_ENABLED
180 #endif
181 
182 #ifdef SOLID_PROPERTIES_ENABLED
184 #endif
185 
186 #ifdef STOCHASTIC_TOOLS_ENABLED
188 #endif
189 
190 #ifdef THERMAL_HYDRAULICS_ENABLED
192 #endif
193 
194 #ifdef XFEM_ENABLED
196 #endif
197 }
198 
199 void
201 {
202  mooseDeprecated("use ModulesApp::registerAll instead of ModulesApp::registerObjects");
203 #ifdef CHEMICAL_REACTIONS_ENABLED
205 #endif
206 
207 #ifdef CONTACT_ENABLED
209 #endif
210 
211 #ifdef ELECTROMAGNETICS_ENABLED
213 #endif
214 
215 #ifdef FLUID_PROPERTIES_ENABLED
217 #endif
218 
219 #ifdef FUNCTIONAL_EXPANSION_TOOLS_ENABLED
221 #endif
222 
223 #ifdef HEAT_TRANSFER_ENABLED
225 #endif
226 
227 #ifdef LEVEL_SET_ENABLED
229 #endif
230 
231 #ifdef MISC_ENABLED
232  MiscApp::registerObjects(factory);
233 #endif
234 
235 #ifdef NAVIER_STOKES_ENABLED
237 #endif
238 
239 #ifdef PERIDYNAMICS_ENABLED
241 #endif
242 
243 #ifdef PHASE_FIELD_ENABLED
245 #endif
246 
247 #ifdef POROUS_FLOW_ENABLED
249 #endif
250 
251 #ifdef RAY_TRACING_ENABLED
253 #endif
254 
255 #ifdef RDG_ENABLED
256  RdgApp::registerObjects(factory);
257 #endif
258 
259 #ifdef REACTOR_ENABLED
261 #endif
262 
263 #ifdef RICHARDS_ENABLED
265 #endif
266 
267 #ifdef SOLID_MECHANICS_ENABLED
269 #endif
270 
271 #ifdef SOLID_PROPERTIES_ENABLED
273 #endif
274 
275 #ifdef STOCHASTIC_TOOLS_ENABLED
277 #endif
278 
279 #ifdef THERMAL_HYDRAULICS_ENABLED
281 #endif
282 
283 #ifdef XFEM_ENABLED
284  XFEMApp::registerObjects(factory);
285 #endif
286 
287  libmesh_ignore(factory);
288 }
289 
290 void
292 {
293  mooseDeprecated("use ModulesApp::registerAll instead of ModulesApp::associateSyntax");
294 #ifdef CHEMICAL_REACTIONS_ENABLED
296 #endif
297 
298 #ifdef CONTACT_ENABLED
299  ContactApp::associateSyntax(syntax, action_factory);
300 #endif
301 
302 #ifdef ELECTROMAGNETICS_ENABLED
304 #endif
305 
306 #ifdef FLUID_PROPERTIES_ENABLED
308 #endif
309 
310 #ifdef FUNCTIONAL_EXPANSION_TOOLS_ENABLED
312 #endif
313 
314 #ifdef HEAT_TRANSFER_ENABLED
315  HeatTransferApp::associateSyntax(syntax, action_factory);
316 #endif
317 
318 #ifdef LEVEL_SET_ENABLED
319  LevelSetApp::associateSyntax(syntax, action_factory);
320 #endif
321 
322 #ifdef MISC_ENABLED
323  MiscApp::associateSyntax(syntax, action_factory);
324 #endif
325 
326 #ifdef NAVIER_STOKES_ENABLED
327  NavierStokesApp::associateSyntax(syntax, action_factory);
328 #endif
329 
330 #ifdef PERIDYNAMICS_ENABLED
331  PeridynamicsApp::associateSyntax(syntax, action_factory);
332 #endif
333 
334 #ifdef PHASE_FIELD_ENABLED
335  PhaseFieldApp::associateSyntax(syntax, action_factory);
336 #endif
337 
338 #ifdef POROUS_FLOW_ENABLED
339  PorousFlowApp::associateSyntax(syntax, action_factory);
340 #endif
341 
342 #ifdef RAY_TRACING_ENABLED
343  RayTracingApp::associateSyntax(syntax, action_factory);
344 #endif
345 
346 #ifdef RDG_ENABLED
347  RdgApp::associateSyntax(syntax, action_factory);
348 #endif
349 
350 #ifdef REACTOR_ENABLED
351  ReactorApp::associateSyntax(syntax, action_factory);
352 #endif
353 
354 #ifdef RICHARDS_ENABLED
355  RichardsApp::associateSyntax(syntax, action_factory);
356 #endif
357 
358 #ifdef SOLID_MECHANICS_ENABLED
360 #endif
361 
362 #ifdef SOLID_PROPERTIES_ENABLED
364 #endif
365 
366 #ifdef STOCHASTIC_TOOLS_ENABLED
368 #endif
369 
370 #ifdef THERMAL_HYDRAULICS_ENABLED
372 #endif
373 
374 #ifdef XFEM_ENABLED
375  XFEMApp::associateSyntax(syntax, action_factory);
376 #endif
377 
378  libmesh_ignore(syntax, action_factory);
379 }
380 
381 void
383 {
384  mooseDeprecated("Do not use registerExecFlags, apps no longer require flag registration");
385 #ifdef CHEMICAL_REACTIONS_ENABLED
387 #endif
388 
389 #ifdef CONTACT_ENABLED
391 #endif
392 
393 #ifdef ELECTROMAGNETICS_ENABLED
395 #endif
396 
397 #ifdef FLUID_PROPERTIES_ENABLED
399 #endif
400 
401 #ifdef HEAT_TRANSFER_ENABLED
403 #endif
404 
405 #ifdef LEVEL_SET_ENABLED
407 #endif
408 
409 #ifdef MISC_ENABLED
411 #endif
412 
413 #ifdef NAVIER_STOKES_ENABLED
415 #endif
416 
417 #ifdef PERIDYNAMICS_ENABLED
419 #endif
420 
421 #ifdef PHASE_FIELD_ENABLED
423 #endif
424 
425 #ifdef POROUS_FLOW_ENABLED
427 #endif
428 
429 #ifdef RAY_TRACING_ENABLED
431 #endif
432 
433 #ifdef RDG_ENABLED
434  RdgApp::registerExecFlags(factory);
435 #endif
436 
437 #ifdef REACTOR_ENABLED
439 #endif
440 
441 #ifdef RICHARDS_ENABLED
443 #endif
444 
445 #ifdef SOLID_MECHANICS_ENABLED
447 #endif
448 
449 #ifdef SOLID_PROPERTIES_ENABLED
451 #endif
452 
453 #ifdef STOCHASTIC_TOOLS_ENABLED
455 #endif
456 
457 #ifdef THERMAL_HYDRAULICS_ENABLED
459 #endif
460 
461 #ifdef XFEM_ENABLED
463 #endif
464 
465  libmesh_ignore(factory);
466 }
467 
468 void
470 {
472  "\"registerAll\" in Modules is deprecated. Please update your *App.C file(s) to call the new "
473  "templated \"registerAllObjects\" method (e.g. ModulesApp::registerAllObjects<MyApp>(...))");
474 
475 #ifdef CHEMICAL_REACTIONS_ENABLED
477 #endif
478 
479 #ifdef CONTACT_ENABLED
480  ContactApp::registerAll(f, af, s);
481 #endif
482 
483 #ifdef ELECTROMAGNETICS_ENABLED
485 #endif
486 
487 #ifdef FLUID_PROPERTIES_ENABLED
489 #endif
490 
491 #ifdef FSI_ENABLED
492  FsiApp::registerAll(f, af, s);
493 #endif
494 
495 #ifdef GEOCHEMISTRY_ENABLED
497 #endif
498 
499 #ifdef HEAT_TRANSFER_ENABLED
501 #endif
502 
503 #ifdef LEVEL_SET_ENABLED
504  LevelSetApp::registerAll(f, af, s);
505 #endif
506 
507 #ifdef MISC_ENABLED
508  MiscApp::registerAll(f, af, s);
509 #endif
510 
511 #ifdef NAVIER_STOKES_ENABLED
513 #endif
514 
515 #ifdef OPTIMIZATION_ENABLED
517 #endif
518 
519 #ifdef PERIDYNAMICS_ENABLED
521 #endif
522 
523 #ifdef PHASE_FIELD_ENABLED
525 #endif
526 
527 #ifdef POROUS_FLOW_ENABLED
529 #endif
530 
531 #ifdef RAY_TRACING_ENABLED
533 #endif
534 
535 #ifdef RDG_ENABLED
536  RdgApp::registerAll(f, af, s);
537 #endif
538 
539 #ifdef REACTOR_ENABLED
540  ReactorApp::registerAll(f, af, s);
541 #endif
542 
543 #ifdef RICHARDS_ENABLED
544  RichardsApp::registerAll(f, af, s);
545 #endif
546 
547 #ifdef SCALAR_TRANSPORT_ENABLED
549 #endif
550 
551 #ifdef SOLID_MECHANICS_ENABLED
553 #endif
554 
555 #ifdef SOLID_PROPERTIES_ENABLED
557 #endif
558 
559 #ifdef STOCHASTIC_TOOLS_ENABLED
561 #endif
562 
563 #ifdef THERMAL_HYDRAULICS_ENABLED
565 #endif
566 
567 #ifdef XFEM_ENABLED
568  XFEMApp::registerAll(f, af, s);
569 #endif
570 
571 #ifdef EXTERNAL_PETSC_SOLVER_ENABLED
573 #endif
574 
575  libmesh_ignore(f, s, af);
576 }
577 
578 extern "C" void
580 {
581  ModulesApp::registerAll(f, af, s);
582 }
583 
584 extern "C" void
586 {
588 }
static void registerApps()
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: ReactorApp.C:54
void ModulesApp__registerApps()
Definition: ModulesApp.C:585
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: RayTracingApp.C:69
static void registerExecFlags(Factory &factory)
Definition: ReactorApp.C:61
static void registerApps()
Definition: XFEMApp.C:56
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerApps()
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:579
static void registerExecFlags(Factory &factory)
static void registerObjects(Factory &factory)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerApps()
static void registerExecFlags(Factory &factory)
Definition: ModulesApp.C:382
static void registerExecFlags(Factory &factory)
Definition: RdgApp.C:63
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: MiscApp.C:35
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: LevelSetApp.C:46
static void registerObjects(Factory &factory)
static void registerObjects(Factory &factory)
Definition: LevelSetApp.C:53
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerObjects(Factory &factory)
Definition: ModulesApp.C:200
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerExecFlags(Factory &factory)
static void registerApps()
Syntax _syntax
Syntax & syntax()
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: PorousFlowApp.C:87
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: RayTracingApp.C:37
static void registerObjects(Factory &factory)
Definition: ContactApp.C:69
static InputParameters validParams()
static void registerExecFlags(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: MiscApp.C:54
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: ContactApp.C:76
static void registerObjects(Factory &factory)
static void registerObjects(Factory &factory)
Definition: RdgApp.C:49
static void registerApps()
Definition: RayTracingApp.C:56
static void registerExecFlags(Factory &factory)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: XFEMApp.C:46
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
void libmesh_ignore(const Args &...)
static void registerObjects(Factory &factory)
Definition: ReactorApp.C:47
static void registerExecFlags(Factory &factory)
Definition: LevelSetApp.C:66
static void registerApps()
Definition: ModulesApp.C:110
static void registerObjects(Factory &factory)
static void registerExecFlags(Factory &factory)
static void registerObjects(Factory &factory)
Definition: XFEMApp.C:71
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: PhaseFieldApp.C:93
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: PhaseFieldApp.C:72
Real f(Real x)
Test function for Brents method.
ModulesApp(const InputParameters &parameters)
Definition: ModulesApp.C:102
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: FsiApp.C:34
static void registerExecFlags(Factory &factory)
Definition: MiscApp.C:60
static void registerObjects(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerObjects(Factory &factory)
Definition: RichardsApp.C:60
ActionFactory _action_factory
static void registerApps()
Definition: RichardsApp.C:54
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: RichardsApp.C:46
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerApps()
void mooseDeprecated(Args &&... args)
static void registerApps()
Definition: RdgApp.C:43
static void registerApps()
static void registerApps()
Definition: MiscApp.C:42
static void registerObjects(Factory &factory)
static void registerObjects(Factory &factory)
Definition: PhaseFieldApp.C:86
virtual ~ModulesApp()
Definition: ModulesApp.C:107
static void registerObjects(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: LevelSetApp.C:60
static void registerObjects(Factory &factory)
static void registerExecFlags(Factory &factory)
Definition: XFEMApp.C:93
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerApps()
Definition: PhaseFieldApp.C:80
static InputParameters validParams()
Definition: ModulesApp.C:96
static void registerExecFlags(Factory &factory)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: RdgApp.C:56
static void registerObjects(Factory &factory)
Definition: RayTracingApp.C:62
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerExecFlags(Factory &factory)
static void registerExecFlags(Factory &)
Definition: ContactApp.h:26
static void registerApps()
Definition: PorousFlowApp.C:39
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerApps()
static void registerObjects(Factory &factory)
static void registerApps()
Definition: ReactorApp.C:41
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: RdgApp.C:36
static void registerApps()
static void registerObjects(Factory &factory)
Deprecated Methods.
Factory _factory
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: RichardsApp.C:67
static void registerApps()
Definition: ContactApp.C:61
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ModulesApp.C:469
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ReactorApp.C:31
static void registerExecFlags(Factory &factory)
Definition: RichardsApp.C:75
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:85
static void registerExecFlags(Factory &factory)
static void registerExecFlags(Factory &factory)
Definition: RayTracingApp.C:76
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerExecFlags(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: ModulesApp.C:291
static void registerExecFlags(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ContactApp.C:51
static void registerObjects(Factory &factory)
static void registerExecFlags(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerApps()
Definition: LevelSetApp.C:40
static void registerObjects(Factory &factory)
Definition: MiscApp.C:48