Skip to content
Snippets Groups Projects
Commit b3c764bf authored by Timo Koch's avatar Timo Koch
Browse files

[richards] Fix parameter in privar switch

parent 7606f8d8
No related branches found
No related tags found
2 merge requests!623Feature/richards on next,!617[WIP] Next
...@@ -78,11 +78,12 @@ protected: ...@@ -78,11 +78,12 @@ protected:
IndexType dofIdxGlobal, IndexType dofIdxGlobal,
const GlobalPosition& globalPos) const GlobalPosition& globalPos)
{ {
static const bool usePriVarSwitch = GET_PARAM_FROM_GROUP(TypeTag, bool, Problem, UsePrimaryVariableSwitch); static const bool usePriVarSwitch = getParamFromGroup<bool>(GET_PROP_VALUE(TypeTag, ModelParameterGroup), "Problem.UsePrimaryVariableSwitch");
if (!usePriVarSwitch) if (!usePriVarSwitch)
return false; return false;
assert(enableWaterDiffusionInAir && "The Richards primary variable switch only works with water diffusion in air enabled!"); if (!enableWaterDiffusionInAir)
DUNE_THROW(Dune::InvalidStateException, "The Richards primary variable switch only works with water diffusion in air enabled!");
// evaluate primary variable switch // evaluate primary variable switch
bool wouldSwitch = false; bool wouldSwitch = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment