mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2279 Fishbones. Guard against too small MD
This commit is contained in:
parent
02fdddad7f
commit
fc6df4558f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user