www.mooseframework.org
ModulesApp.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #include "ModulesApp.h"
9 #include "Factory.h"
10 #include "ActionFactory.h"
11 #include "AppFactory.h"
12 #include "MooseSyntax.h"
13 
14 #ifdef CHEMICAL_REACTIONS_ENABLED
15 #include "ChemicalReactionsApp.h"
16 #endif
17 #ifdef CONTACT_ENABLED
18 #include "ContactApp.h"
19 #endif
20 #ifdef FLUID_PROPERTIES_ENABLED
21 #include "FluidPropertiesApp.h"
22 #endif
23 #ifdef HEAT_CONDUCTION_ENABLED
24 #include "HeatConductionApp.h"
25 #endif
26 #ifdef LEVEL_SET_ENABLED
27 #include "LevelSetApp.h"
28 #endif
29 #ifdef MISC_ENABLED
30 #include "MiscApp.h"
31 #endif
32 #ifdef NAVIER_STOKES_ENABLED
33 #include "NavierStokesApp.h"
34 #endif
35 #ifdef PHASE_FIELD_ENABLED
36 #include "PhaseFieldApp.h"
37 #endif
38 #ifdef POROUS_FLOW_ENABLED
39 #include "PorousFlowApp.h"
40 #endif
41 #ifdef RDG_ENABLED
42 #include "RdgApp.h"
43 #endif
44 #ifdef RICHARDS_ENABLED
45 #include "RichardsApp.h"
46 #endif
47 #ifdef SOLID_MECHANICS_ENABLED
48 #include "SolidMechanicsApp.h"
49 #endif
50 #ifdef STOCHASTIC_TOOLS_ENABLED
51 #include "StochasticToolsApp.h"
52 #endif
53 #ifdef TENSOR_MECHANICS_ENABLED
54 #include "TensorMechanicsApp.h"
55 #endif
56 #ifdef WATER_STEAM_EOS_ENABLED
57 #include "WaterSteamEOSApp.h"
58 #endif
59 #ifdef XFEM_ENABLED
60 #include "XFEMApp.h"
61 #endif
62 
64 
67 void
68 clearUnusedWarnings(Factory & /*factory*/)
69 {
70 }
71 void
72 clearUnusedWarnings(Syntax & /*syntax*/, ActionFactory & /*action_factory*/)
73 {
74 }
76 
77 template <>
78 InputParameters
80 {
81  InputParameters params = validParams<MooseApp>();
82  return params;
83 }
84 
85 ModulesApp::ModulesApp(const InputParameters & parameters) : MooseApp(parameters)
86 {
87  Moose::registerObjects(_factory);
89 
90  Moose::associateSyntax(_syntax, _action_factory);
91  ModulesApp::associateSyntax(_syntax, _action_factory);
92 }
93 
95 
96 // External entry point for dynamic application loading
97 extern "C" void
99 {
101 }
102 void
104 {
105  registerApp(ModulesApp);
106 }
107 
108 // External entry point for dynamic object registration
109 extern "C" void
110 ModulesApp__registerObjects(Factory & factory)
111 {
113 }
114 void
115 ModulesApp::registerObjects(Factory & factory)
116 {
117 #ifdef CHEMICAL_REACTIONS_ENABLED
119 #endif
120 
121 #ifdef CONTACT_ENABLED
123 #endif
124 
125 #ifdef FLUID_PROPERTIES_ENABLED
127 #endif
128 
129 #ifdef HEAT_CONDUCTION_ENABLED
131 #endif
132 
133 #ifdef LEVEL_SET_ENABLED
135 #endif
136 
137 #ifdef MISC_ENABLED
138  MiscApp::registerObjects(factory);
139 #endif
140 
141 #ifdef NAVIER_STOKES_ENABLED
143 #endif
144 
145 #ifdef PHASE_FIELD_ENABLED
147 #endif
148 
149 #ifdef POROUS_FLOW_ENABLED
151 #endif
152 
153 #ifdef RDG_ENABLED
154  RdgApp::registerObjects(factory);
155 #endif
156 
157 #ifdef RICHARDS_ENABLED
159 #endif
160 
161 #ifdef SOLID_MECHANICS_ENABLED
163 #endif
164 
165 #ifdef STOCHASTIC_TOOLS_ENABLED
167 #endif
168 
169 #ifdef TENSOR_MECHANICS_ENABLED
171 #endif
172 
173 #ifdef WATER_STEAM_EOS_ENABLED
175 #endif
176 
177 #ifdef XFEM_ENABLED
178  XFEMApp::registerObjects(factory);
179 #endif
180 
181  clearUnusedWarnings(factory);
182 }
183 
184 // External entry point for dynamic syntax association
185 extern "C" void
186 ModulesApp__associateSyntax(Syntax & syntax, ActionFactory & action_factory)
187 {
188  ModulesApp::associateSyntax(syntax, action_factory);
189 }
190 void
191 ModulesApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
192 {
193 #ifdef CHEMICAL_REACTIONS_ENABLED
194  ChemicalReactionsApp::associateSyntax(syntax, action_factory);
195 #endif
196 
197 #ifdef CONTACT_ENABLED
198  ContactApp::associateSyntax(syntax, action_factory);
199 #endif
200 
201 #ifdef FLUID_PROPERTIES_ENABLED
202  FluidPropertiesApp::associateSyntax(syntax, action_factory);
203 #endif
204 
205 #ifdef HEAT_CONDUCTION_ENABLED
206  HeatConductionApp::associateSyntax(syntax, action_factory);
207 #endif
208 
209 #ifdef LEVEL_SET_ENABLED
210  LevelSetApp::associateSyntax(syntax, action_factory);
211 #endif
212 
213 #ifdef MISC_ENABLED
214  MiscApp::associateSyntax(syntax, action_factory);
215 #endif
216 
217 #ifdef NAVIER_STOKES_ENABLED
218  NavierStokesApp::associateSyntax(syntax, action_factory);
219 #endif
220 
221 #ifdef PHASE_FIELD_ENABLED
222  PhaseFieldApp::associateSyntax(syntax, action_factory);
223 #endif
224 
225 #ifdef POROUS_FLOW_ENABLED
226  PorousFlowApp::associateSyntax(syntax, action_factory);
227 #endif
228 
229 #ifdef RDG_ENABLED
230  RdgApp::associateSyntax(syntax, action_factory);
231 #endif
232 
233 #ifdef RICHARDS_ENABLED
234  RichardsApp::associateSyntax(syntax, action_factory);
235 #endif
236 
237 #ifdef SOLID_MECHANICS_ENABLED
238  SolidMechanicsApp::associateSyntax(syntax, action_factory);
239 #endif
240 
241 #ifdef STOCHASTIC_TOOLS_ENABLED
242  StochasticToolsApp::associateSyntax(syntax, action_factory);
243 #endif
244 
245 #ifdef TENSOR_MECHANICS_ENABLED
246  TensorMechanicsApp::associateSyntax(syntax, action_factory);
247 #endif
248 
249 #ifdef WATER_STEAM_EOS_ENABLED
250  WaterSteamEOSApp::associateSyntax(syntax, action_factory);
251 #endif
252 
253 #ifdef XFEM_ENABLED
254  XFEMApp::associateSyntax(syntax, action_factory);
255 #endif
256 
257  clearUnusedWarnings(syntax, action_factory);
258 }
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
void ModulesApp__registerApps()
Definition: ModulesApp.C:98
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
void ModulesApp__registerObjects(Factory &factory)
Definition: ModulesApp.C:110
static void registerObjects(Factory &factory)
Definition: LevelSetApp.C:67
static void registerObjects(Factory &factory)
static void registerObjects(Factory &factory)
Definition: ModulesApp.C:115
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerObjects(Factory &factory)
static void registerObjects(Factory &factory)
Definition: ContactApp.C:72
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: MiscApp.C:80
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: ContactApp.C:96
static void registerObjects(Factory &factory)
static void registerObjects(Factory &factory)
Definition: RdgApp.C:66
static void registerApps()
Definition: ModulesApp.C:103
static void registerObjects(Factory &factory)
static void registerObjects(Factory &factory)
Definition: XFEMApp.C:83
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
ModulesApp(const InputParameters &parameters)
Definition: ModulesApp.C:85
static void registerObjects(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerObjects(Factory &factory)
Definition: RichardsApp.C:135
InputParameters validParams< ModulesApp >()
Definition: ModulesApp.C:79
static void registerObjects(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
virtual ~ModulesApp()
Definition: ModulesApp.C:94
static void registerObjects(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: LevelSetApp.C:97
static void registerObjects(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: RdgApp.C:91
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
void ModulesApp__associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: ModulesApp.C:186
static void registerObjects(Factory &factory)
static void registerObjects(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: RichardsApp.C:229
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: XFEMApp.C:132
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: ModulesApp.C:191
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
void clearUnusedWarnings(Factory &)
Dummy methods to clear unused parameter warnings from compiler.
Definition: ModulesApp.C:68
static void registerObjects(Factory &factory)
Definition: MiscApp.C:58