Commit a5a7a09d authored by Melanie Lipp's avatar Melanie Lipp
Browse files

[test][freeflow] Correct definition of boolean hasAnalyticalSolution in channel test.

parent 3b46080d
......@@ -144,7 +144,9 @@ public:
useVelocityProfile_ = getParam<bool>("Problem.UseVelocityProfile", false);
outletPressure_ = getParam<Scalar>("Problem.OutletPressure", 1.1e5);
hasAnalyticalSolution_ = (outletCondition_ == OutletCondition::neumannXneumannY);
const bool isStationary = getParam<bool>("Problem.IsStationary", false);
hasAnalyticalSolution_ = isStationary && useVelocityProfile_ && (outletCondition_ != OutletCondition::doNothing);
if (hasAnalyticalSolution_)
createAnalyticalSolution_();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment