Skip to content

Commit

Permalink
Merge pull request idaholab#24594 from Naktakala/stork_update
Browse files Browse the repository at this point in the history
Stork update ahead of workshop
  • Loading branch information
loganharbour authored Jun 5, 2023
2 parents 968eb46 + 8e29cd2 commit 9903c96
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
1 change: 1 addition & 0 deletions stork/include/base/StorkApp.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ class StorkApp : public MooseApp
virtual ~StorkApp();

static void registerApps();
static void registerAll(Factory & f, ActionFactory & af, Syntax & s);
};
16 changes: 13 additions & 3 deletions stork/src/base/StorkApp.C.app
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,27 @@ InputParameters
StorkApp::validParams()
{
InputParameters params = MooseApp::validParams();

params.set<bool>("use_legacy_material_output") = false;
return params;
}

StorkApp::StorkApp(InputParameters parameters) : MooseApp(parameters)
{
ModulesApp::registerAllObjects<StorkApp>(_factory, _action_factory, _syntax);
StorkApp::registerAll(_factory, _action_factory, _syntax);
}

StorkApp::~StorkApp() {}

void
StorkApp::registerAll(Factory & f, ActionFactory & af, Syntax & s)
{
ModulesApp::registerAllObjects<StorkApp>(f, af, s);
Registry::registerObjectsTo(f, {"StorkApp"});
Registry::registerActionsTo(af, {"StorkApp"});

/* register custom execute flags, action syntax, etc. here */
}

void
StorkApp::registerApps()
{
Expand All @@ -31,7 +41,7 @@ StorkApp::registerApps()
extern "C" void
StorkApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
{
ModulesApp::registerAllObjects<StorkApp>(f, af, s);
StorkApp::registerAll(f, af, s);
}
extern "C" void
StorkApp__registerApps()
Expand Down
3 changes: 1 addition & 2 deletions stork/src/base/StorkApp.C.module
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ InputParameters
StorkApp::validParams()
{
InputParameters params = MooseApp::validParams();

params.set<bool>("use_legacy_material_output") = false;
return params;
}

Expand All @@ -21,7 +21,6 @@ StorkApp::~StorkApp() {}
void
StorkApp::registerAll(Factory & f, ActionFactory & af, Syntax & /*s*/)
{
/* ModulesApp::registerAll(f, af, s); */
Registry::registerObjectsTo(f, {"StorkApp"});
Registry::registerActionsTo(af, {"StorkApp"});

Expand Down
4 changes: 2 additions & 2 deletions stork/test/src/base/StorkTestApp.C.app
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
#include "Moose.h"
#include "AppFactory.h"
#include "MooseSyntax.h"
#include "ModulesApp.h"

InputParameters
StorkTestApp::validParams()
{
InputParameters params = StorkApp::validParams();
params.set<bool>("use_legacy_material_output") = false;
return params;
}

Expand All @@ -31,7 +31,7 @@ StorkTestApp::~StorkTestApp() {}
void
StorkTestApp::registerAll(Factory & f, ActionFactory & af, Syntax & s, bool use_test_objs)
{
ModulesApp::registerAllObjects<StorkApp>(f, af, s);
StorkApp::registerAll(f, af, s);
if (use_test_objs)
{
Registry::registerObjectsTo(f, {"StorkTestApp"});
Expand Down
1 change: 1 addition & 0 deletions stork/test/src/base/StorkTestApp.C.module
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ InputParameters
StorkTestApp::validParams()
{
InputParameters params = StorkApp::validParams();
params.set<bool>("use_legacy_material_output") = false;
return params;
}

Expand Down

0 comments on commit 9903c96

Please sign in to comment.