mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6071 MSW export : Use minimum MD of grid entry point and completions
This commit is contained in:
parent
8cc167568c
commit
423f280a70
@ -959,6 +959,21 @@ RicMswExportInfo
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
double startOfFirstCompletion = std::numeric_limits<double>::infinity();
|
||||
{
|
||||
for ( auto* fracture : fractures )
|
||||
{
|
||||
if ( fracture->isEnabled() && fracture->startMD() < startOfFirstCompletion )
|
||||
{
|
||||
startOfFirstCompletion = fracture->startMD();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Initial MD is the lowest MD based on grid intersection and start of fracture completions
|
||||
// https://github.com/OPM/ResInsight/issues/6071
|
||||
initialMD = std::min( initialMD, startOfFirstCompletion );
|
||||
}
|
||||
|
||||
RicMswExportInfo exportInfo( wellPath,
|
||||
@ -1113,6 +1128,23 @@ std::vector<SubSegmentIntersectionInfo>
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
double startOfFirstCompletion = std::numeric_limits<double>::infinity();
|
||||
{
|
||||
std::vector<const RimWellPathComponentInterface*> allCompletions = wellPath->completions()->allCompletions();
|
||||
|
||||
for ( const RimWellPathComponentInterface* completion : allCompletions )
|
||||
{
|
||||
if ( completion->isEnabled() && completion->startMD() < startOfFirstCompletion )
|
||||
{
|
||||
startOfFirstCompletion = completion->startMD();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Initial MD is the lowest MD based on grid intersection and start of fracture completions
|
||||
// https://github.com/OPM/ResInsight/issues/6071
|
||||
initialMD = std::min( initialMD, startOfFirstCompletion );
|
||||
}
|
||||
|
||||
std::vector<WellPathCellIntersectionInfo> filteredIntersections =
|
||||
|
Loading…
Reference in New Issue
Block a user