diff --git a/examples/problems/powerinjectionproblem.hh b/examples/problems/powerinjectionproblem.hh index 618dd4822..6b0b32a80 100644 --- a/examples/problems/powerinjectionproblem.hh +++ b/examples/problems/powerinjectionproblem.hh @@ -325,10 +325,11 @@ public: // impose a forced flow boundary values.setMassRate(massRate); } - else { + else if (onRightBoundary_(pos)) // free flow boundary with initial condition on the right values.setFreeFlow(context, spaceIdx, timeIdx, initialFluidState_); - } + else + values.setNoFlow(); } //! \}