Commit a1e5e4ab authored by Andrew Heather's avatar Andrew Heather
Browse files

COMP: move error trap to within debug scope

parent 8dadd181
......@@ -72,9 +72,12 @@ void Foam::LESModels::cubeRootVolDelta::calcDelta()
}
else
{
FatalErrorInFunction
<< "Case is not 3D or 2D, LES is not applicable"
<< exit(FatalError);
if (debug)
{
FatalErrorInFunction
<< "Case is not 3D or 2D, LES is not applicable"
<< exit(FatalError);
}
}
// Handle coupled boundaries
......
Markdown is supported
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