mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3265 Use the first active cell as entry point reference.
This commit is contained in:
parent
4dcbf6e918
commit
914f946110
@ -1428,7 +1428,7 @@ RicMswExportInfo
|
||||
const std::vector<RimWellPathFracture*>& fractures)
|
||||
{
|
||||
const RigMainGrid* grid = caseToApply->eclipseCaseData()->mainGrid();
|
||||
|
||||
const RigActiveCellInfo* activeCellInfo = caseToApply->eclipseCaseData()->activeCellInfo(RiaDefines::MATRIX_MODEL);
|
||||
RiaEclipseUnitTools::UnitSystem unitSystem = caseToApply->eclipseCaseData()->unitsType();
|
||||
|
||||
const RigWellPath* wellPathGeometry = wellPath->wellPathGeometry();
|
||||
@ -1444,9 +1444,16 @@ RicMswExportInfo
|
||||
{
|
||||
initialMD = wellPath->fractureCollection()->manualReferenceMD();
|
||||
}
|
||||
else if (!intersections.empty())
|
||||
else
|
||||
{
|
||||
initialMD = intersections.front().startMD;
|
||||
for (WellPathCellIntersectionInfo intersection : intersections)
|
||||
{
|
||||
if (activeCellInfo->isActive(intersection.globCellIndex))
|
||||
{
|
||||
initialMD = intersection.startMD;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
RicMswExportInfo exportInfo(wellPath,
|
||||
|
Loading…
Reference in New Issue
Block a user