www.mooseframework.org
CombinedApp.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 "CombinedApp.h"
11 #include "Factory.h"
12 #include "ActionFactory.h"
13 #include "AppFactory.h"
14 #include "MooseSyntax.h"
15 
16 #include "ChemicalReactionsApp.h"
17 #include "ContactApp.h"
18 #include "FluidPropertiesApp.h"
20 #include "HeatConductionApp.h"
21 #include "LevelSetApp.h"
22 #include "MiscApp.h"
23 #include "NavierStokesApp.h"
24 #include "PhaseFieldApp.h"
25 #include "PorousFlowApp.h"
26 #include "RdgApp.h"
27 #include "RichardsApp.h"
28 #include "SolidMechanicsApp.h"
29 #include "StochasticToolsApp.h"
30 #include "TensorMechanicsApp.h"
31 #include "XFEMApp.h"
32 #include "ExternalPetscSolverApp.h"
33 
34 template <>
35 InputParameters
37 {
38  InputParameters params = validParams<MooseApp>();
39  return params;
40 }
41 
42 registerKnownLabel("CombinedApp");
43 
44 CombinedApp::CombinedApp(const InputParameters & parameters) : MooseApp(parameters)
45 {
46  CombinedApp::registerAll(_factory, _action_factory, _syntax);
47 }
48 
50 
51 void
53 {
54  registerApp(CombinedApp);
55 }
56 
57 void
58 CombinedApp::registerAll(Factory & f, ActionFactory & af, Syntax & s)
59 {
60  Registry::registerObjectsTo(f, {"CombinedApp"});
61  Registry::registerActionsTo(af, {"CombinedApp"});
62 
64  ContactApp::registerAll(f, af, s);
68  LevelSetApp::registerAll(f, af, s);
69  MiscApp::registerAll(f, af, s);
73  RdgApp::registerAll(f, af, s);
74  RichardsApp::registerAll(f, af, s);
78  XFEMApp::registerAll(f, af, s);
80 }
81 
82 void
83 CombinedApp::registerObjects(Factory & factory)
84 {
85  mooseDeprecated("use registerAll instead of registerObjects");
92  MiscApp::registerObjects(factory);
96  RdgApp::registerObjects(factory);
101  XFEMApp::registerObjects(factory);
102 }
103 
104 void
105 CombinedApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
106 {
107  mooseDeprecated("use registerAll instead of associateSyntax");
108  ChemicalReactionsApp::associateSyntax(syntax, action_factory);
109  ContactApp::associateSyntax(syntax, action_factory);
110  FluidPropertiesApp::associateSyntax(syntax, action_factory);
111  FunctionalExpansionToolsApp::associateSyntax(syntax, action_factory);
112  HeatConductionApp::associateSyntax(syntax, action_factory);
113  LevelSetApp::associateSyntax(syntax, action_factory);
114  MiscApp::associateSyntax(syntax, action_factory);
115  NavierStokesApp::associateSyntax(syntax, action_factory);
116  PhaseFieldApp::associateSyntax(syntax, action_factory);
117  PorousFlowApp::associateSyntax(syntax, action_factory);
118  RdgApp::associateSyntax(syntax, action_factory);
119  RichardsApp::associateSyntax(syntax, action_factory);
120  SolidMechanicsApp::associateSyntax(syntax, action_factory);
121  StochasticToolsApp::associateSyntax(syntax, action_factory);
122  TensorMechanicsApp::associateSyntax(syntax, action_factory);
123  XFEMApp::associateSyntax(syntax, action_factory);
124 }
125 
126 void
128 {
129  mooseDeprecated("use registerAll instead of registerExecFlags");
143  RdgApp::registerExecFlags(factory);
145 }
146 
147 extern "C" void
148 CombinedApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
149 {
150  CombinedApp::registerAll(f, af, s);
151 }
152 extern "C" void
154 {
156 }
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
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)
static void registerApps()
Definition: CombinedApp.C:52
static void registerExecFlags(Factory &factory)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
CombinedApp(const InputParameters &parameters)
Definition: CombinedApp.C:44
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
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
void CombinedApp__registerApps()
Definition: CombinedApp.C:153
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerObjects(Factory &factory)
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 registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: CombinedApp.C:58
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
registerKnownLabel("CombinedApp")
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 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
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
virtual ~CombinedApp()
Definition: CombinedApp.C:49
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: RichardsApp.C:43
static void registerObjects(Factory &factory)
Definition: CombinedApp.C:83
static void registerObjects(Factory &factory)
Definition: PhaseFieldApp.C:81
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 registerExecFlags(Factory &factory)
Definition: CombinedApp.C:127
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 registerExecFlags(Factory &factory)
Definition: RichardsApp.C:72
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
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 associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: CombinedApp.C:105
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerExecFlags(Factory &factory)
Definition: PhaseFieldApp.C:96
void CombinedApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: CombinedApp.C:148
static void registerExecFlags(Factory &factory)
InputParameters validParams< CombinedApp >()
Definition: CombinedApp.C:36
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
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