#3377 Fishbones : Missing intersection with main bore cell for fishbone with one sub

This commit is contained in:
Magne Sjaastad
2018-09-18 13:08:45 +02:00
parent 38c2c9c237
commit 96973c2dfc

View File

@@ -215,13 +215,23 @@ void RicFishbonesTransmissibilityCalculationFeatureImp::findFishboneLateralsWell
for (const auto& fishboneDefinition : wellPath->fishbonesCollection()->activeFishbonesSubs()) for (const auto& fishboneDefinition : wellPath->fishbonesCollection()->activeFishbonesSubs())
{ {
double startMD = fishboneDefinition->startOfSubMD();
double endMD = fishboneDefinition->endOfSubMD();
if (fabs(startMD - endMD) < 1e-3)
{
// Start and end md are close, adjust to be sure we get an intersection along the well path
startMD -= 0.5;
endMD += 0.5;
}
appendMainWellBoreParts(wellBorePartsInCells, appendMainWellBoreParts(wellBorePartsInCells,
wellPath, wellPath,
settings, settings,
skinFactor, skinFactor,
holeRadius, holeRadius,
fishboneDefinition->startOfSubMD(), startMD,
fishboneDefinition->endOfSubMD()); endMD);
} }
} }
} }