www.mooseframework.org
LevelSetTestApp.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 "LevelSetTestApp.h"
11 #include "LevelSetApp.h"
12 #include "Moose.h"
13 #include "AppFactory.h"
14 #include "MooseSyntax.h"
15 
16 template <>
17 InputParameters
19 {
20  InputParameters params = validParams<LevelSetApp>();
21  return params;
22 }
23 
24 registerKnownLabel("LevelSetTestApp");
25 
26 LevelSetTestApp::LevelSetTestApp(InputParameters parameters) : MooseApp(parameters)
27 {
28  srand(processor_id());
30  _factory, _action_factory, _syntax, getParam<bool>("allow_test_objects"));
31 }
32 
34 
35 void
36 LevelSetTestApp::registerAll(Factory & f, ActionFactory & af, Syntax & s, bool use_test_objs)
37 {
38  LevelSetApp::registerAll(f, af, s);
39  if (use_test_objs)
40  {
41  Registry::registerObjectsTo(f, {"LevelSetTestApp"});
42  Registry::registerActionsTo(af, {"LevelSetTestApp"});
43  }
44 }
45 
46 void
48 {
49  registerApp(LevelSetApp);
50  registerApp(LevelSetTestApp);
51 }
52 
53 void
55 {
56  Registry::registerObjectsTo(factory, {"LevelSetTestApp"});
57 }
58 
59 void
60 LevelSetTestApp::associateSyntax(Syntax & /*syntax*/, ActionFactory & action_factory)
61 {
62  Registry::registerActionsTo(action_factory, {"LevelSetTestApp"});
63 }
64 
65 void
66 LevelSetTestApp::registerExecFlags(Factory & /*factory*/)
67 {
68 }
69 
70 extern "C" void
71 LevelSetTestApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
72 {
74 }
75 extern "C" void
77 {
79 }
LevelSetApp::registerAll
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: LevelSetApp.C:55
LevelSetTestApp::registerAll
static void registerAll(Factory &f, ActionFactory &af, Syntax &s, bool use_test_objs=false)
Definition: LevelSetTestApp.C:36
LevelSetTestApp
Definition: LevelSetTestApp.h:19
LevelSetTestApp::registerObjects
static void registerObjects(Factory &factory)
Definition: LevelSetTestApp.C:54
LevelSetTestApp::LevelSetTestApp
LevelSetTestApp(InputParameters parameters)
Definition: LevelSetTestApp.C:26
LevelSetTestApp__registerAll
void LevelSetTestApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: LevelSetTestApp.C:71
LevelSetApp.h
LevelSetTestApp::~LevelSetTestApp
virtual ~LevelSetTestApp()
Definition: LevelSetTestApp.C:33
registerKnownLabel
registerKnownLabel("LevelSetTestApp")
LevelSetTestApp::associateSyntax
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: LevelSetTestApp.C:60
LevelSetTestApp::registerApps
static void registerApps()
Definition: LevelSetTestApp.C:47
LevelSetTestApp.h
LevelSetApp
Definition: LevelSetApp.h:19
LevelSetTestApp::registerExecFlags
static void registerExecFlags(Factory &factory)
Definition: LevelSetTestApp.C:66
validParams< LevelSetTestApp >
InputParameters validParams< LevelSetTestApp >()
Definition: LevelSetTestApp.C:18
LevelSetTestApp__registerApps
void LevelSetTestApp__registerApps()
Definition: LevelSetTestApp.C:76
validParams< LevelSetApp >
InputParameters validParams< LevelSetApp >()
Definition: LevelSetApp.C:18