mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user