Line data Source code
1 : #include "AppFactory.h" 2 : #include "MastodonApp.h" 3 : #include "Moose.h" 4 : #include "MooseSyntax.h" 5 : #include "ModulesApp.h" 6 : 7 : // Optional dependence on BlackBear 8 : #ifdef BLACKBEAR_ENABLED 9 : #include "BlackBearApp.h" 10 : #endif 11 : 12 : InputParameters 13 581 : MastodonApp::validParams() 14 : { 15 581 : InputParameters params = MooseApp::validParams(); 16 581 : params.set<bool>("error_unused") = true; 17 581 : params.set<bool>("use_legacy_uo_initialization") = false; 18 581 : params.set<bool>("use_legacy_uo_aux_computation") = false; 19 581 : params.set<bool>("use_legacy_output_syntax") = false; 20 : 21 581 : return params; 22 0 : } 23 : 24 : // When using the new Registry system, this line is required so that 25 : // dependent apps know about the MastodonApp label. 26 : registerKnownLabel("MastodonApp"); 27 : 28 0 : MastodonApp::MastodonApp(InputParameters parameters) : MooseApp(parameters) 29 : { 30 0 : MastodonApp::registerAll(_factory, _action_factory, _syntax); 31 0 : } 32 : 33 : void 34 471 : MastodonApp::registerApps() 35 : { 36 471 : registerApp(MastodonApp); 37 471 : ModulesApp::registerApps(); 38 : #ifdef BLACKBEAR_ENABLED 39 471 : BlackBearApp::registerApps(); 40 : #endif 41 471 : } 42 : 43 : void 44 581 : MastodonApp::registerAll(Factory & factory, ActionFactory & action_factory, Syntax & syntax) 45 : { 46 : 47 581 : Registry::registerObjectsTo(factory, {"MastodonApp"}); 48 581 : Registry::registerActionsTo(action_factory, {"MastodonApp"}); 49 581 : ModulesApp::registerAllObjects<MastodonApp>(factory, action_factory, syntax); 50 : #ifdef BLACKBEAR_ENABLED 51 581 : BlackBearApp::registerAll(factory, action_factory, syntax); 52 : #endif 53 : 54 1162 : syntax.registerActionSyntax("EmptyAction", "BCs/SeismicForce"); 55 1162 : syntax.registerActionSyntax("SeismicForceAction", "BCs/SeismicForce/*"); 56 : 57 1162 : syntax.registerActionSyntax("EmptyAction", "BCs/SeismicDisplacement"); 58 1162 : syntax.registerActionSyntax("SeismicDisplacementAction", "BCs/SeismicDisplacement/*"); 59 : 60 1162 : syntax.registerActionSyntax("EmptyAction", "BCs/NonReflectingBC"); 61 1162 : syntax.registerActionSyntax("NonReflectingBCAction", "BCs/NonReflectingBC/*"); 62 : 63 1162 : syntax.registerActionSyntax("EmptyAction", "DiracKernels/SeismicSource"); 64 1162 : syntax.registerActionSyntax("SeismicSourceAction", "DiracKernels/SeismicSource/*"); 65 : 66 1162 : syntax.registerActionSyntax("EmptyAction", "Materials/I_Soil"); 67 1162 : syntax.registerActionSyntax("ISoilAction", "Materials/I_Soil/*"); 68 : 69 1162 : syntax.registerActionSyntax("MastodonModelAction", "Mastodon/Model"); 70 : 71 1162 : syntax.registerActionSyntax("MastodonOutputsAction", "Mastodon/Outputs"); 72 : 73 581 : registerDataFilePath(); 74 581 : } 75 : 76 : extern "C" void 77 0 : MastodonApp__registerAll(Factory & f, ActionFactory & af, Syntax & s) 78 : { 79 0 : MastodonApp::registerAll(f, af, s); 80 0 : }