mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-29 10:21:54 -06:00
Transmissibility equations: guard against NaN in very small intersections.
This commit is contained in:
parent
515213694c
commit
6a5c6ee545
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user