www.mooseframework.org
LevelSetTestApp.C
Go to the documentation of this file.
1 #include "LevelSetTestApp.h"
2 #include "LevelSetApp.h"
3 #include "Moose.h"
4 #include "AppFactory.h"
5 #include "MooseSyntax.h"
6 
7 template <>
8 InputParameters
10 {
11  InputParameters params = validParams<LevelSetApp>();
12  return params;
13 }
14 
15 LevelSetTestApp::LevelSetTestApp(InputParameters parameters) : MooseApp(parameters)
16 {
17  srand(processor_id());
18 
19  Moose::registerObjects(_factory);
21 
22  Moose::associateSyntax(_syntax, _action_factory);
23  LevelSetApp::associateSyntax(_syntax, _action_factory);
24 
25  bool use_test_objs = getParam<bool>("allow_test_objects");
26  if (use_test_objs)
27  {
29  LevelSetTestApp::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(LevelSetApp);
45  registerApp(LevelSetTestApp);
46 }
47 
48 // External entry point for dynamic object registration
49 extern "C" void
51 {
53 }
54 void
55 LevelSetTestApp::registerObjects(Factory & /*factory*/)
56 {
57 }
58 
59 // External entry point for dynamic syntax association
60 extern "C" void
61 LevelSetTestApp__associateSyntax(Syntax & syntax, ActionFactory & action_factory)
62 {
63  LevelSetTestApp::associateSyntax(syntax, action_factory);
64 }
65 void
66 LevelSetTestApp::associateSyntax(Syntax & /*syntax*/, ActionFactory & /*action_factory*/)
67 {
68 }
virtual ~LevelSetTestApp()
static void registerObjects(Factory &factory)
InputParameters validParams< LevelSetApp >()
Definition: LevelSetApp.C:41
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerObjects(Factory &factory)
Definition: LevelSetApp.C:67
LevelSetTestApp(InputParameters parameters)
void LevelSetTestApp__registerObjects(Factory &factory)
static void registerApps()
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: LevelSetApp.C:97
void LevelSetTestApp__associateSyntax(Syntax &syntax, ActionFactory &action_factory)
void LevelSetTestApp__registerApps()
InputParameters validParams< LevelSetTestApp >()