mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
Fix further crash issue with stacked data interpolation for well log curves
This commit is contained in:
1 parent
bfaff27d51
commit
1ceee51a7d
1 file changed
+10
@@ -2408,6 +2408,16 @@ void RimWellLogTrack::updateStackedCurveData()
|
||||
}
|
||||
}
|
||||
}
|
||||
// The above doesn't sort nearly identical depths. The resampling below requires that.
|
||||
if ( depthType == RiaDefines::DepthTypeEnum::CONNECTION_NUMBER )
|
||||
{
|
||||
std::sort( allDepthValues.begin(), allDepthValues.end(), std::greater<double>() );
|
||||
}
|
||||
else
|
||||
{
|
||||
std::sort( allDepthValues.begin(), allDepthValues.end() );
|
||||
}
|
||||
|
||||
if ( allDepthValues.empty() ) continue;
|
||||
|
||||
size_t stackIndex = 0u;
|
||||
|
||||
Reference in new issue
Block a user