COMP: move error trap to within debug scope

This commit is contained in:
Andrew Heather
2018-01-12 10:03:47 +00:00
parent 8dadd181c1
commit a1e5e4abcb

View File

@ -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