#5254 Support estimating RKB-diff from TVDMSL and MDRKB when first TVDMSL == 0

* Add warning when the RKB-diff cannot be estimated
This commit is contained in:
Gaute Lindkvist
2020-02-03 14:05:51 +01:00
parent a66a1bca22
commit a85745cb91
3 changed files with 21 additions and 2 deletions

View File

@@ -23,6 +23,7 @@
#include "RigGeoMechWellLogExtractor.h"
#include "RiaDefines.h"
#include "RiaLogging.h"
#include "RiaWeightedMeanCalculator.h"
#include "RigFemPart.h"
#include "RigFemPartCollection.h"
@@ -126,6 +127,13 @@ QString RigGeoMechWellLogExtractor::curveData( const RigFemResultAddress& resAdd
if ( resAddr.resultPosType == RIG_WELLPATH_DERIVED )
{
if ( m_wellPath->rkbDiff() == HUGE_VAL )
{
RiaLogging::error( "Well path has an invalid datum elevation and we cannot estimate TVDRKB. No well bore "
"stability curves created." );
return "";
}
if ( resAddr.fieldName == RiaDefines::wbsFGResult().toStdString() )
{
wellBoreWallCurveData( resAddr, frameIndex, values );