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