ENH: downgrade finiteArea processor edge-length checks

- now simply warn (on FULLDEBUG) instead of Fatal.
  Avoids spurious errors on small edges.
This commit is contained in:
Mark Olesen
2023-02-24 17:17:04 +01:00
parent 8a2cd2edfb
commit 7246b49eac

View File

@ -211,6 +211,7 @@ void Foam::processorFaPatch::calcGeometry(PstreamBuffers& pBufs)
>> neighbEdgeFaceCentres_;
}
#ifdef FULLDEBUG
const scalarField& magEl = magEdgeLengths();
forAll(magEl, edgei)
@ -220,14 +221,14 @@ void Foam::processorFaPatch::calcGeometry(PstreamBuffers& pBufs)
if (mag(magEl[edgei] - nmagEl)/avEl > 1e-6)
{
FatalErrorInFunction
WarningInFunction
<< "edge " << edgei
<< " length does not match neighbour by "
<< 100*mag(magEl[edgei] - nmagEl)/avEl
<< "% -- possible edge ordering problem"
<< exit(FatalError);
<< "% -- possible edge ordering problem" << nl;
}
}
#endif
calcTransformTensors
(