diff --git a/src/TurbulenceModels/turbulenceModels/LES/LESdeltas/cubeRootVolDelta/cubeRootVolDelta.C b/src/TurbulenceModels/turbulenceModels/LES/LESdeltas/cubeRootVolDelta/cubeRootVolDelta.C index 5b88de32cd..49e58e0447 100644 --- a/src/TurbulenceModels/turbulenceModels/LES/LESdeltas/cubeRootVolDelta/cubeRootVolDelta.C +++ b/src/TurbulenceModels/turbulenceModels/LES/LESdeltas/cubeRootVolDelta/cubeRootVolDelta.C @@ -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