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