Skip to content

Commit

Permalink
Merge pull request #27822 from dschwen/neml2_datafile_27812
Browse files Browse the repository at this point in the history
Use data file interface
  • Loading branch information
dschwen authored Jun 7, 2024
2 parents d03f861 + bae3beb commit 0445d49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/solid_mechanics/src/neml2/actions/NEML2Action.C
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ NEML2Action::validParams()
{
InputParameters params = Action::validParams();
NEML2Utils::addClassDescription(params, "Parse and set up NEML2 objects");
params.addRequiredParam<FileName>("input",
"Path to the NEML2 input file containing the NEML2 model(s)");
params.addRequiredParam<DataFileName>(
"input", "Path to the NEML2 input file containing the NEML2 model(s)");
params.addRequiredParam<std::string>(
"model",
"Name of the NEML2 model, i.e., the string inside the brackets [] in the NEML2 input file "
Expand Down Expand Up @@ -73,7 +73,7 @@ NEML2Action::act()

NEML2Action::NEML2Action(const InputParameters & parameters)
: Action(parameters),
_fname(getParam<FileName>("input")),
_fname(getDataFileName("input")),
_mname(getParam<std::string>("model")),
_verbose(getParam<bool>("verbose")),
_mode(getParam<MooseEnum>("mode")),
Expand Down

0 comments on commit 0445d49

Please sign in to comment.