Commit 80b5d3a1 authored by mattijs's avatar mattijs
Browse files

ENH: blockMesh: protect face projection from misses. Fixes #1591.

parent ec3de712
......@@ -247,7 +247,14 @@ void Foam::blockFaces::projectFace::project
}
if (iter > 0 && (iResidual+jResidual)/initialResidual < relTol)
if
(
iter > 0
&& (
initialResidual < ROOTVSMALL
|| ((iResidual+jResidual)/initialResidual < relTol)
)
)
{
break;
}
......
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