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