mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
#2279 Fishbones. Guard against too small MD
This commit is contained in:
1 parent
02fdddad7f
commit
fc6df4558f
1 file changed
+6
-3
@@ -64,9 +64,12 @@ void RicNewFishbonesSubsFeature::onActionTriggered(bool isChecked)
|
||||
fishbonesCollection->appendFishbonesSubs(obj);
|
||||
|
||||
double wellPathTipMd = getWellPathTipMd(wellPath);
|
||||
if (wellPathTipMd != NAN)
|
||||
if (wellPathTipMd != HUGE_VAL)
|
||||
{
|
||||
obj->setMeasuredDepthAndCount(wellPathTipMd - 150 - 100, 12.5, 13);
|
||||
double startMd = wellPathTipMd - 150 - 100;
|
||||
if (startMd < 100) startMd = 100;
|
||||
|
||||
obj->setMeasuredDepthAndCount(startMd, 12.5, 13);
|
||||
}
|
||||
|
||||
RicNewFishbonesSubsFeature::askUserToSetUsefulScaling(fishbonesCollection);
|
||||
@@ -202,5 +205,5 @@ double getWellPathTipMd(RimWellPath* wellPath)
|
||||
{
|
||||
return geometry->m_measuredDepths.back();
|
||||
}
|
||||
return NAN;
|
||||
return HUGE_VAL;
|
||||
}
|
||||
Reference in new issue
Block a user