https://mooseframework.inl.gov
RdgTestApp.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 "RdgTestApp.h"
11 #include "RdgApp.h"
12 #include "Moose.h"
13 #include "AppFactory.h"
14 #include "MooseSyntax.h"
15 
18 {
20  return params;
21 }
22 
23 registerKnownLabel("RdgTestApp");
24 
25 RdgTestApp::RdgTestApp(const InputParameters & parameters) : MooseApp(parameters)
26 {
27  RdgTestApp::registerAll(_factory, _action_factory, _syntax, getParam<bool>("allow_test_objects"));
28 }
29 
31 
32 void
33 RdgTestApp::registerAll(Factory & f, ActionFactory & af, Syntax & s, bool use_test_objs)
34 {
35  RdgApp::registerAll(f, af, s);
36  if (use_test_objs)
37  {
38  Registry::registerObjectsTo(f, {"RdgTestApp"});
39  Registry::registerActionsTo(af, {"RdgTestApp"});
40  }
41 }
42 
43 void
45 {
47  registerApp(RdgTestApp);
48 }
49 extern "C" void
51 {
52  RdgTestApp::registerAll(f, af, s);
53 }
54 extern "C" void
56 {
58 }
static InputParameters validParams()
Definition: RdgTestApp.C:17
static void registerObjectsTo(Factory &f, const std::set< std::string > &labels)
Syntax _syntax
void RdgTestApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: RdgTestApp.C:50
static void registerActionsTo(ActionFactory &f, const std::set< std::string > &labels)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s, bool use_test_objs=false)
Definition: RdgTestApp.C:33
Real f(Real x)
Test function for Brents method.
ActionFactory _action_factory
registerKnownLabel("RdgTestApp")
static void registerApps()
Definition: RdgApp.C:44
virtual ~RdgTestApp()
Definition: RdgTestApp.C:30
RdgTestApp(const InputParameters &parameters)
Definition: RdgTestApp.C:25
void RdgTestApp__registerApps()
Definition: RdgTestApp.C:55
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: RdgApp.C:37
static void registerApps()
Definition: RdgTestApp.C:44
Factory _factory
static InputParameters validParams()
Definition: RdgApp.C:16