Transmissibility equations: guard against NaN in very small intersections.

This commit is contained in:
Kristian Bendiksen 2024-03-15 13:22:29 +01:00 committed by Magne Sjaastad
parent 515213694c
commit 6a5c6ee545

View File

@ -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