Skip to content
Permalink
Browse files

Merge pull request #13344 from bwspenc/set_params

Set a couple of other parameters needed in createConstitutiveModel
  • Loading branch information...
dschwen committed May 2, 2019
2 parents 1148465 + 5dea0bc commit 4785e894d2e3336585ad563b5d957b31aabe0f6e
Showing with 5 additions and 0 deletions.
  1. +5 −0 modules/solid_mechanics/src/materials/SolidModel.C
@@ -1596,6 +1596,11 @@ SolidModel::createConstitutiveModel(const std::string & cm_name)

params.applyParameters(parameters());
params.set<SubProblem *>("_subproblem") = &_subproblem;
if (parameters().isParamValid("_material_data_type"))
params.set<Moose::MaterialDataType>("_material_data_type") =
getParam<Moose::MaterialDataType>("_material_data_type");
if (parameters().isParamValid("_neighbor"))
params.set<bool>("_neighbor") = getParam<bool>("_neighbor");
MooseSharedPointer<ConstitutiveModel> cm =
factory.create<ConstitutiveModel>(cm_name, name() + "Model", params, _tid);

0 comments on commit 4785e89

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