www.mooseframework.org
StochasticToolsTestApp.C
Go to the documentation of this file.
2 #include "StochasticToolsApp.h"
3 #include "Moose.h"
4 #include "AppFactory.h"
5 #include "MooseSyntax.h"
7 #include "TestSampler.h"
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<StochasticToolsApp>();
14  return params;
15 }
16 
17 StochasticToolsTestApp::StochasticToolsTestApp(InputParameters parameters) : MooseApp(parameters)
18 {
19  Moose::registerObjects(_factory);
21 
22  Moose::associateSyntax(_syntax, _action_factory);
23  StochasticToolsApp::associateSyntax(_syntax, _action_factory);
24 
25  bool use_test_objs = getParam<bool>("allow_test_objects");
26  if (use_test_objs)
27  {
29  StochasticToolsTestApp::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(StochasticToolsApp);
45  registerApp(StochasticToolsTestApp);
46 }
47 
48 // External entry point for dynamic object registration
49 extern "C" void
51 {
53 }
54 void
56 {
57  registerPostprocessor(TestDistributionPostprocessor);
58  registerUserObject(TestSampler);
59 }
60 
61 // External entry point for dynamic syntax association
62 extern "C" void
63 StochasticToolsTestApp__associateSyntax(Syntax & syntax, ActionFactory & action_factory)
64 {
65  StochasticToolsTestApp::associateSyntax(syntax, action_factory);
66 }
67 void
68 StochasticToolsTestApp::associateSyntax(Syntax & /*syntax*/, ActionFactory & /*action_factory*/)
69 {
70 }
void StochasticToolsTestApp__associateSyntax(Syntax &syntax, ActionFactory &action_factory)
UserObject for testing Sampler object threaded and parallel behavior, it should be used for anything ...
Definition: TestSampler.h:25
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
void StochasticToolsTestApp__registerApps()
InputParameters validParams< StochasticToolsTestApp >()
StochasticToolsTestApp(InputParameters parameters)
Test object for testing distribution capabilities.
static void registerObjects(Factory &factory)
InputParameters validParams< StochasticToolsApp >()
void StochasticToolsTestApp__registerObjects(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerObjects(Factory &factory)