Skip to content

Commit

Permalink
Transmissibility equations: guard against NaN in very small intersect…
Browse files Browse the repository at this point in the history
…ions.
  • Loading branch information
kriben authored and magnesj committed Mar 15, 2024
1 parent 5152136 commit 6a5c6ee
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a5c6ee

Please sign in to comment.