www.mooseframework.org
SolidMechanicsApp.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 "SolidMechanicsApp.h"
11 #include "TensorMechanicsApp.h"
12 #include "Moose.h"
13 #include "AppFactory.h"
14 #include "MooseSyntax.h"
15 
16 template <>
17 InputParameters
19 {
20  InputParameters params = validParams<MooseApp>();
21  return params;
22 }
23 
24 registerKnownLabel("SolidMechanicsApp");
25 
26 SolidMechanicsApp::SolidMechanicsApp(const InputParameters & parameters) : MooseApp(parameters)
27 {
28  SolidMechanicsApp::registerAll(_factory, _action_factory, _syntax);
29 }
30 
32 
33 static void
34 associateSyntaxInner(Syntax & syntax, ActionFactory & /*action_factory*/)
35 {
36  registerSyntax("SolidMechanicsAction", "SolidMechanics/*");
37 }
38 
39 void
40 SolidMechanicsApp::registerAll(Factory & f, ActionFactory & af, Syntax & s)
41 {
42  Registry::registerObjectsTo(f, {"SolidMechanicsApp"});
43  Registry::registerActionsTo(af, {"SolidMechanicsApp"});
44  associateSyntaxInner(s, af);
45 
47 }
48 
49 void
51 {
52  registerApp(SolidMechanicsApp);
53 }
54 
55 void
57 {
58  mooseDeprecated("use registerAll instead of registerObjectsDepends");
60 }
61 
62 void
64 {
65  mooseDeprecated("use registerAll instead of registerObjects");
66  Registry::registerObjectsTo(factory, {"SolidMechanicsApp"});
67 }
68 
69 void
70 SolidMechanicsApp::associateSyntaxDepends(Syntax & syntax, ActionFactory & action_factory)
71 {
72  mooseDeprecated("use registerAll instead of associateSyntaxDepends");
73  TensorMechanicsApp::associateSyntax(syntax, action_factory);
74 }
75 
76 void
77 SolidMechanicsApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
78 {
79  mooseDeprecated("use registerAll instead of associateSyntax");
80  Registry::registerActionsTo(action_factory, {"SolidMechanicsApp"});
81  associateSyntaxInner(syntax, action_factory);
82 }
83 
84 void
86 {
87  mooseDeprecated("use registerAll instead of registerExecFlags");
88 }
89 
90 extern "C" void
91 SolidMechanicsApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
92 {
94 }
95 extern "C" void
97 {
99 }
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
registerKnownLabel("SolidMechanicsApp")
virtual ~SolidMechanicsApp()
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static void associateSyntaxDepends(Syntax &syntax, ActionFactory &action_factory)
static void registerApps()
static void registerObjects(Factory &factory)
static void registerObjectDepends(Factory &factory)
static void registerObjects(Factory &factory)
SolidMechanicsApp(const InputParameters &parameters)
static void associateSyntaxInner(Syntax &syntax, ActionFactory &)
InputParameters validParams< SolidMechanicsApp >()
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerExecFlags(Factory &factory)
void SolidMechanicsApp__registerApps()
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
void SolidMechanicsApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)