mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
StimPlan Export: Workaround precision issue in Deviation.frk export
This commit is contained in:
parent
3a94078867
commit
61ea190920
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user