www.mooseframework.org
MiscTestApp.C
Go to the documentation of this file.
1 #include "MiscTestApp.h"
2 #include "MiscApp.h"
3 #include "Moose.h"
4 #include "AppFactory.h"
5 #include "MooseSyntax.h"
6 
7 #include "Convection.h"
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<MiscApp>();
14  return params;
15 }
16 
17 MiscTestApp::MiscTestApp(InputParameters parameters) : MooseApp(parameters)
18 {
19  Moose::registerObjects(_factory);
20  MiscApp::registerObjects(_factory);
21 
22  Moose::associateSyntax(_syntax, _action_factory);
23  MiscApp::associateSyntax(_syntax, _action_factory);
24 
25  bool use_test_objs = getParam<bool>("allow_test_objects");
26  if (use_test_objs)
27  {
29  MiscTestApp::associateSyntax(_syntax, _action_factory);
30  }
31 }
32 
34 
35 // External entry point for dynamic application loading
36 extern "C" void
38 {
40 }
41 void
43 {
44  registerApp(MiscApp);
45  registerApp(MiscTestApp);
46 }
47 
48 // External entry point for dynamic object registration
49 extern "C" void
50 MiscTestApp__registerObjects(Factory & factory)
51 {
53 }
54 void
55 MiscTestApp::registerObjects(Factory & factory)
56 {
57  registerKernel(Convection);
58 }
59 
60 // External entry point for dynamic syntax association
61 extern "C" void
62 MiscTestApp__associateSyntax(Syntax & syntax, ActionFactory & action_factory)
63 {
64  MiscTestApp::associateSyntax(syntax, action_factory);
65 }
66 void
67 MiscTestApp::associateSyntax(Syntax & /*syntax*/, ActionFactory & /*action_factory*/)
68 {
69 }
void MiscTestApp__registerApps()
Definition: MiscTestApp.C:37
InputParameters validParams< MiscApp >()
Definition: MiscApp.C:22
MiscTestApp(InputParameters parameters)
Definition: MiscTestApp.C:17
InputParameters validParams< MiscTestApp >()
Definition: MiscTestApp.C:11
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: MiscApp.C:80
static void registerObjects(Factory &factory)
Definition: MiscTestApp.C:55
virtual ~MiscTestApp()
Definition: MiscTestApp.C:33
void MiscTestApp__registerObjects(Factory &factory)
Definition: MiscTestApp.C:50
void MiscTestApp__associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: MiscTestApp.C:62
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: MiscTestApp.C:67
static void registerApps()
Definition: MiscTestApp.C:42
static void registerObjects(Factory &factory)
Definition: MiscApp.C:58