mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 17:32:13 -05:00
Transmissibility equations: guard against NaN in very small intersections.
This commit is contained in:
1 parent
515213694c
commit
6a5c6ee545
1 file changed
+3
+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
|
||||
|
||||
Reference in new issue
Block a user