https://mooseframework.inl.gov
ModulesApp.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 SUBCHANNEL_ENABLED
86 #include "SubChannelApp.h"
87 #endif
88 #ifdef THERMAL_HYDRAULICS_ENABLED
89 #include "ThermalHydraulicsApp.h"
90 #endif
91 #ifdef XFEM_ENABLED
92 #include "XFEMApp.h"
93 #endif
94 #ifdef EXTERNAL_PETSC_SOLVER_ENABLED
95 #include "ExternalPetscSolverApp.h"
96 #endif
97 
100 {
102  return params;
103 }
104 
105 ModulesApp::ModulesApp(const InputParameters & parameters) : MooseApp(parameters)
106 {
108 }
109 
111 
112 void
114 {
115  registerApp(ModulesApp);
116 
117 #ifdef CHEMICAL_REACTIONS_ENABLED
119 #endif
120 
121 #ifdef CONTACT_ENABLED
123 #endif
124 
125 #ifdef ELECTROMAGNETICS_ENABLED
127 #endif
128 
129 #ifdef FSI_ENABLED
131 #endif
132 
133 #ifdef FLUID_PROPERTIES_ENABLED
135 #endif
136 
137 #ifdef FUNCTIONAL_EXPANSION_TOOLS_ENABLED
139 #endif
140 
141 #ifdef GEOCHEMISTRY_ENABLED
143 #endif
144 
145 #ifdef HEAT_TRANSFER_ENABLED
147 #endif
148 
149 #ifdef LEVEL_SET_ENABLED
151 #endif
152 
153 #ifdef MISC_ENABLED
155 #endif
156 
157 #ifdef NAVIER_STOKES_ENABLED
159 #endif
160 
161 #ifdef OPTIMIZATION_ENABLED
163 #endif
164 
165 #ifdef PERIDYNAMICS_ENABLED
167 #endif
168 
169 #ifdef PHASE_FIELD_ENABLED
171 #endif
172 
173 #ifdef POROUS_FLOW_ENABLED
175 #endif
176 
177 #ifdef RAY_TRACING_ENABLED
179 #endif
180 
181 #ifdef RDG_ENABLED
183 #endif
184 
185 #ifdef REACTOR_ENABLED
187 #endif
188 
189 #ifdef RICHARDS_ENABLED
191 #endif
192 
193 #ifdef SCALAR_TRANSPORT_ENABLED
195 #endif
196 
197 #ifdef SOLID_MECHANICS_ENABLED
199 #endif
200 
201 #ifdef SOLID_PROPERTIES_ENABLED
203 #endif
204 
205 #ifdef STOCHASTIC_TOOLS_ENABLED
207 #endif
208 
209 #ifdef SUBCHANNEL_ENABLED
211 #endif
212 
213 #ifdef THERMAL_HYDRAULICS_ENABLED
215 #endif
216 
217 #ifdef XFEM_ENABLED
219 #endif
220 }
221 
222 void
224 {
226  "\"registerAll\" in Modules is deprecated. Please update your *App.C file(s) to call the new "
227  "templated \"registerAllObjects\" method (e.g. ModulesApp::registerAllObjects<MyApp>(...))");
228 
229 #ifdef CHEMICAL_REACTIONS_ENABLED
231 #endif
232 
233 #ifdef CONTACT_ENABLED
234  ContactApp::registerAll(f, af, s);
235 #endif
236 
237 #ifdef ELECTROMAGNETICS_ENABLED
239 #endif
240 
241 #ifdef FLUID_PROPERTIES_ENABLED
243 #endif
244 
245 #ifdef FSI_ENABLED
246  FsiApp::registerAll(f, af, s);
247 #endif
248 
249 #ifdef FUNCTIONAL_EXPANSION_TOOLS_ENABLED
251 #endif
252 
253 #ifdef GEOCHEMISTRY_ENABLED
255 #endif
256 
257 #ifdef HEAT_TRANSFER_ENABLED
259 #endif
260 
261 #ifdef LEVEL_SET_ENABLED
262  LevelSetApp::registerAll(f, af, s);
263 #endif
264 
265 #ifdef MISC_ENABLED
266  MiscApp::registerAll(f, af, s);
267 #endif
268 
269 #ifdef NAVIER_STOKES_ENABLED
271 #endif
272 
273 #ifdef OPTIMIZATION_ENABLED
275 #endif
276 
277 #ifdef PERIDYNAMICS_ENABLED
279 #endif
280 
281 #ifdef PHASE_FIELD_ENABLED
283 #endif
284 
285 #ifdef POROUS_FLOW_ENABLED
287 #endif
288 
289 #ifdef RAY_TRACING_ENABLED
291 #endif
292 
293 #ifdef RDG_ENABLED
294  RdgApp::registerAll(f, af, s);
295 #endif
296 
297 #ifdef REACTOR_ENABLED
298  ReactorApp::registerAll(f, af, s);
299 #endif
300 
301 #ifdef RICHARDS_ENABLED
302  RichardsApp::registerAll(f, af, s);
303 #endif
304 
305 #ifdef SCALAR_TRANSPORT_ENABLED
307 #endif
308 
309 #ifdef SOLID_MECHANICS_ENABLED
311 #endif
312 
313 #ifdef SOLID_PROPERTIES_ENABLED
315 #endif
316 
317 #ifdef STOCHASTIC_TOOLS_ENABLED
319 #endif
320 
321 #ifdef SUBCHANNEL_ENABLED
323 #endif
324 
325 #ifdef THERMAL_HYDRAULICS_ENABLED
327 #endif
328 
329 #ifdef XFEM_ENABLED
330  XFEMApp::registerAll(f, af, s);
331 #endif
332 
333 #ifdef EXTERNAL_PETSC_SOLVER_ENABLED
335 #endif
336 
337  libmesh_ignore(f, s, af);
338 }
339 
340 extern "C" void
342 {
343  ModulesApp::registerAll(f, af, s);
344 }
345 
346 extern "C" void
348 {
350 }
static void registerApps()
void ModulesApp__registerApps()
Definition: ModulesApp.C:347
static void registerApps()
Definition: XFEMApp.C:52
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerApps()
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: SubChannelApp.C:52
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
void ModulesApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ModulesApp.C:341
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerApps()
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: MiscApp.C:36
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: LevelSetApp.C:47
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerApps()
Syntax _syntax
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: PorousFlowApp.C:50
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: RayTracingApp.C:38
static InputParameters validParams()
static void registerApps()
static void registerApps()
Definition: RayTracingApp.C:57
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: XFEMApp.C:39
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
void libmesh_ignore(const Args &...)
static void registerApps()
Definition: ModulesApp.C:113
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: PhaseFieldApp.C:38
Real f(Real x)
Test function for Brents method.
ModulesApp(const InputParameters &parameters)
Definition: ModulesApp.C:105
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: FsiApp.C:35
ActionFactory _action_factory
static void registerApps()
Definition: RichardsApp.C:51
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: RichardsApp.C:39
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerApps()
void mooseDeprecated(Args &&... args)
static void registerApps()
Definition: RdgApp.C:44
static void registerApps()
static void registerApps()
Definition: MiscApp.C:43
virtual ~ModulesApp()
Definition: ModulesApp.C:110
static void registerApps()
Definition: PhaseFieldApp.C:76
static InputParameters validParams()
Definition: ModulesApp.C:99
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerApps()
Definition: PorousFlowApp.C:40
static void registerApps()
static void registerApps()
static void registerApps()
Definition: ReactorApp.C:42
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: RdgApp.C:37
static void registerApps()
Factory _factory
static void registerApps()
Definition: SubChannelApp.C:66
static void registerApps()
Definition: ContactApp.C:57
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ModulesApp.C:223
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ReactorApp.C:32
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerApps()
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ContactApp.C:38
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerApps()
Definition: LevelSetApp.C:41
static void registerApps()
Definition: FsiApp.C:45