www.mooseframework.org
ChemicalReactionsTestApp.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 
11 #include "ChemicalReactionsApp.h"
12 #include "Moose.h"
13 #include "AppFactory.h"
14 #include "MooseSyntax.h"
15 
18 {
20  return params;
21 }
22 
23 registerKnownLabel("ChemicalReactionsTestApp");
24 
26  : MooseApp(parameters)
27 {
29  _factory, _action_factory, _syntax, getParam<bool>("allow_test_objects"));
30 }
31 
33 
34 void
36  ActionFactory & af,
37  Syntax & s,
38  bool use_test_objects)
39 {
41  if (use_test_objects)
42  {
43  Registry::registerObjectsTo(f, {"ChemicalReactionsTestApp"});
44  Registry::registerActionsTo(af, {"ChemicalReactionsTestApp"});
45  }
46 }
47 
48 void
50 {
51  registerApp(ChemicalReactionsApp);
52  registerApp(ChemicalReactionsTestApp);
53 }
54 
55 void
57 {
58  mooseDeprecated("use registerAll instead of registerObjects");
59  Registry::registerObjectsTo(factory, {"ChemicalReactionsTestApp"});
60 }
61 void
63 {
64  mooseDeprecated("use registerAll instead of associateSyntax");
65  Registry::registerActionsTo(action_factory, {"ChemicalReactionsTestApp"});
66 }
67 void
69 {
70  mooseDeprecated("Do not use registerExecFlags, apps no longer require flag registration");
71 }
72 
73 extern "C" void
75 {
77 }
78 
79 // External entry point for dynamic application loading
80 extern "C" void
82 {
84 }
static void registerAll(Factory &f, ActionFactory &af, Syntax &s, bool use_test_objects=false)
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void registerExecFlags(Factory &factory)
static void registerObjectsTo(Factory &f, const std::set< std::string > &labels)
Syntax _syntax
static void registerObjects(Factory &factory)
static void registerActionsTo(ActionFactory &f, const std::set< std::string > &labels)
static InputParameters validParams()
Real f(Real x)
Test function for Brents method.
ActionFactory _action_factory
void mooseDeprecated(Args &&... args)
void ChemicalReactionsTestApp__registerApps()
ChemicalReactionsTestApp(InputParameters parameters)
static InputParameters validParams()
Factory _factory
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
registerKnownLabel("ChemicalReactionsTestApp")
void ChemicalReactionsTestApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)