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_;
|
>> 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
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user