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 
18 {
20  return params;
21 }
22 
23 registerKnownLabel("LevelSetTestApp");
24 
26 {
27  srand(processor_id());
29  _factory, _action_factory, _syntax, getParam<bool>("allow_test_objects"));
30 }
31 
33 
34 void
35 LevelSetTestApp::registerAll(Factory & f, ActionFactory & af, Syntax & s, bool use_test_objs)
36 {
38  if (use_test_objs)
39  {
40  Registry::registerObjectsTo(f, {"LevelSetTestApp"});
41  Registry::registerActionsTo(af, {"LevelSetTestApp"});
42  }
43 }
44 
45 void
47 {
48  registerApp(LevelSetApp);
49  registerApp(LevelSetTestApp);
50 }
51 
52 void
54 {
55  Registry::registerObjectsTo(factory, {"LevelSetTestApp"});
56 }
57 
58 void
59 LevelSetTestApp::associateSyntax(Syntax & /*syntax*/, ActionFactory & action_factory)
60 {
61  Registry::registerActionsTo(action_factory, {"LevelSetTestApp"});
62 }
63 
64 void
66 {
67 }
68 
69 extern "C" void
71 {
73 }
74 extern "C" void
76 {
78 }
virtual ~LevelSetTestApp()
static void registerObjects(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: LevelSetApp.C:47
LevelSetTestApp(InputParameters parameters)
static void registerObjectsTo(Factory &f, const std::set< std::string > &labels)
Syntax _syntax
processor_id_type processor_id() const
static void registerAll(Factory &f, ActionFactory &af, Syntax &s, bool use_test_objs=false)
static void registerActionsTo(ActionFactory &f, const std::set< std::string > &labels)
static void registerApps()
static void registerExecFlags(Factory &factory)
Real f(Real x)
Test function for Brents method.
static InputParameters validParams()
Definition: LevelSetApp.C:17
ActionFactory _action_factory
void LevelSetTestApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
void LevelSetTestApp__registerApps()
Factory _factory
registerKnownLabel("LevelSetTestApp")
static InputParameters validParams()