Line data Source code
1 : /****************************************************************/ 2 : /* DO NOT MODIFY THIS HEADER */ 3 : /* BlackBear */ 4 : /* */ 5 : /* (c) 2017 Battelle Energy Alliance, LLC */ 6 : /* ALL RIGHTS RESERVED */ 7 : /* */ 8 : /* Prepared by Battelle Energy Alliance, LLC */ 9 : /* Under Contract No. DE-AC07-05ID14517 */ 10 : /* With the U. S. Department of Energy */ 11 : /* */ 12 : /* See COPYRIGHT for full restrictions */ 13 : /****************************************************************/ 14 : 15 : #include "BlackBearApp.h" 16 : #include "BlackBearSyntax.h" 17 : #include "Moose.h" 18 : #include "AppFactory.h" 19 : #include "ModulesApp.h" 20 : #include "MooseSyntax.h" 21 : 22 : InputParameters 23 1835 : BlackBearApp::validParams() 24 : { 25 1835 : InputParameters params = MooseApp::validParams(); 26 1835 : params.set<bool>("use_legacy_material_output") = false; 27 1835 : return params; 28 0 : } 29 : 30 1835 : BlackBearApp::BlackBearApp(const InputParameters & parameters) : MooseApp(parameters) 31 : { 32 1835 : BlackBearApp::registerAll(_factory, _action_factory, _syntax); 33 1835 : } 34 : 35 1706 : BlackBearApp::~BlackBearApp() {} 36 : 37 : void 38 1835 : BlackBearApp::setupOptions() 39 : { 40 1835 : MooseApp::setupOptions(); 41 1832 : } 42 : 43 : void 44 1832 : BlackBearApp::runInputFile() 45 : { 46 1832 : MooseApp::runInputFile(); 47 1742 : } 48 : 49 : static void 50 : associateSyntaxInner(Syntax & /*syntax*/, ActionFactory & /*action_factory*/) 51 : { 52 : } 53 : 54 : // External entry point for dynamic application loading 55 : extern "C" void 56 0 : BlackBearApp__registerApps() 57 : { 58 0 : BlackBearApp::registerApps(); 59 0 : } 60 : void 61 1790 : BlackBearApp::registerApps() 62 : { 63 : { 64 1790 : const std::string doc = "New Engineering Material model Library, version 1 "; 65 : #ifdef NEML_ENABLED 66 3580 : addCapability("neml", true, doc + "is available."); 67 : #else 68 : addCapability("neml", false, doc + "is not available."); 69 : #endif 70 : } 71 : 72 1790 : registerApp(BlackBearApp); 73 1790 : ModulesApp::registerApps(); 74 1790 : } 75 : 76 : // External entry point for object registration 77 : extern "C" void 78 0 : BlackBearApp__registerAll(Factory & factory, ActionFactory & action_factory, Syntax & syntax) 79 : { 80 0 : BlackBearApp::registerAll(factory, action_factory, syntax); 81 0 : } 82 : void 83 3670 : BlackBearApp::registerAll(Factory & factory, ActionFactory & action_factory, Syntax & syntax) 84 : { 85 11010 : Registry::registerObjectsTo(factory, {"BlackBearApp"}); 86 11010 : Registry::registerActionsTo(action_factory, {"BlackBearApp"}); 87 3670 : BlackBear::associateSyntax(syntax, action_factory); 88 : associateSyntaxInner(syntax, action_factory); 89 : 90 3670 : ModulesApp::registerAllObjects<BlackBearApp>(factory, action_factory, syntax); 91 14680 : }