StimPlan Export: Workaround precision issue in Deviation.frk export

This commit is contained in:
Kristian Bendiksen 2021-08-23 14:28:00 +02:00
parent 3a94078867
commit 61ea190920

View File

@ -147,7 +147,9 @@ void RifStimPlanModelDeviationFrkExporter::fixupDepthValuesForExport( const std:
// Move the MD value to produce a file which can be imported.
if ( changeMd < changeTvd )
{
exportMdValues.push_back( exportMdValues[i - 1] + changeTvd );
// Add small amount in addition to delta TVD to work around floating point imprecision.
double wiggle = 0.001;
exportMdValues.push_back( exportMdValues[i - 1] + changeTvd + wiggle );
}
else
{