Skip to content
Permalink
Browse files

Merge pull request #12993 from jiangwen84/register_all

Update tutorial's examples to use registerAll
  • Loading branch information...
moosebuild committed Mar 5, 2019
2 parents d8adc40 + b1b5e76 commit 88608e69bb42efc0a7e4283d324151211a346cca
@@ -23,7 +23,7 @@ class DarcyThermoMechApp : public MooseApp
DarcyThermoMechApp(InputParameters parameters);

static void registerApps();
static void associateSyntax(Syntax & syntax, ActionFactory & action_factory);
static void registerAll(Factory & factory, ActionFactory & action_factory, Syntax & syntax);
};

#endif // DARCYTHERMOMECHAPP_H
@@ -25,13 +25,7 @@ validParams<DarcyThermoMechApp>()

DarcyThermoMechApp::DarcyThermoMechApp(InputParameters parameters) : MooseApp(parameters)
{
Moose::registerObjects(_factory);
Registry::registerObjectsTo(_factory, {type()});
ModulesApp::registerObjects(_factory);

Moose::associateSyntax(_syntax, _action_factory);
ModulesApp::associateSyntax(_syntax, _action_factory);
DarcyThermoMechApp::associateSyntax(_syntax, _action_factory);
DarcyThermoMechApp::registerAll(_factory, _action_factory, _syntax);
}

void
@@ -41,6 +35,9 @@ DarcyThermoMechApp::registerApps()
}

void
DarcyThermoMechApp::associateSyntax(Syntax & /*syntax*/, ActionFactory & /*action_factory*/)
DarcyThermoMechApp::registerAll(Factory & factory, ActionFactory & action_factory, Syntax & syntax)
{
Registry::registerObjectsTo(factory, {"DarcyThermoMechApp"});
Registry::registerActionsTo(action_factory, {"DarcyThermoMechApp"});
ModulesApp::registerAll(factory, action_factory, syntax);
}

0 comments on commit 88608e6

Please sign in to comment.
You can’t perform that action at this time.