#4032 Fix SFG-values in Well bore stability plots

This commit is contained in:
Gaute Lindkvist authored and Magne Sjaastad committed 2019-02-04 11:37:15 +01:00
1 parent 3e81973b6c
commit 956c973d17
1 file changed
+1 -1
@@ -113,7 +113,7 @@ float RigGeoMechWellLogExtractor::calculatePorePressureInSegment(int64_t interse
double porePressure = hydroStaticPorePressureBar;
// 1: Try pore pressure from the grid
if (porePressure == hydroStaticPorePressureBar && averageSegmentPorePressureBar > 0.0)
if (porePressure == hydroStaticPorePressureBar && averageSegmentPorePressureBar != std::numeric_limits<double>::infinity() && averageSegmentPorePressureBar > 0.0)
{
porePressure = averageSegmentPorePressureBar;
}