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