Skip to content

Commit

Permalink
Forcefully call stateful init
Browse files Browse the repository at this point in the history
  • Loading branch information
loganharbour committed Feb 20, 2024
1 parent cfa1bb3 commit 25c0a26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/porous_flow/src/materials/PorousFlowMaterial.C
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ PorousFlowMaterial::validParams()
params.addPrivateParam<std::string>("pf_material_type", "pf_material");
params.addClassDescription("This generalises MOOSE's Material class to allow for Materials that "
"hold information related to the nodes in the finite element");

// Needed due to the custom tomfoolery going on with nodal material sizing in
// initStatefulProperties()
params.set<bool>("_force_stateful_init") = true;

return params;
}

Expand Down

0 comments on commit 25c0a26

Please sign in to comment.