Transmissibility equations: guard against NaN in very small intersections.

This commit is contained in:
Kristian Bendiksen authored and Magne Sjaastad committed 2024-03-15 15:11:53 +01:00
1 parent 515213694c
commit 6a5c6ee545
1 file changed
+3
@@ -263,6 +263,9 @@ void RigEclipseToStimPlanCellTransmissibilityCalculator::calculateStimPlanCellsM
for ( double lengtXarea : lengthXareaOfFractureParts )
totalAreaXLength += lengtXarea;
// Guard against numerical issues for very small intersections
if ( std::isnan( totalAreaXLength ) || std::isnan( fractureArea ) ) continue;
double fractureAreaWeightedlength = totalAreaXLength / fractureArea;
// Transmissibility for inactive cells is set to zero