mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix further crash issue with stacked data interpolation for well log curves
This commit is contained in:
parent
bfaff27d51
commit
1ceee51a7d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user