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 else
{ {
FatalErrorInFunction if (debug)
<< "Case is not 3D or 2D, LES is not applicable" {
<< exit(FatalError); FatalErrorInFunction
<< "Case is not 3D or 2D, LES is not applicable"
<< exit(FatalError);
}
} }
// Handle coupled boundaries // Handle coupled boundaries