mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge perforation updates into dev #2422
This commit is contained in:
commit
c5333d09b2
@ -71,6 +71,7 @@ void RicWellPathImportPerforationIntervalsFeature::onActionTriggered(bool isChec
|
||||
|
||||
std::map<QString, std::vector<RifPerforationInterval> > perforationIntervals = RifPerforationIntervalReader::readPerforationIntervals(wellPathFilePaths);
|
||||
|
||||
RimPerforationInterval* lastPerforationInterval = nullptr;
|
||||
for (auto& entry : perforationIntervals)
|
||||
{
|
||||
RimWellPath* wellPath = wellPathCollection->tryFindMatchingWellPath(entry.first);
|
||||
@ -95,14 +96,21 @@ void RicWellPathImportPerforationIntervalsFeature::onActionTriggered(bool isChec
|
||||
perforationInterval->setDate(interval.date);
|
||||
}
|
||||
wellPath->perforationIntervalCollection()->appendPerforation(perforationInterval);
|
||||
lastPerforationInterval = perforationInterval;
|
||||
}
|
||||
}
|
||||
}
|
||||
wellPathCollection->uiCapability()->updateConnectedEditors();
|
||||
|
||||
if (app->project())
|
||||
{
|
||||
app->project()->createDisplayModelAndRedrawAllViews();
|
||||
}
|
||||
|
||||
if (lastPerforationInterval)
|
||||
{
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(lastPerforationInterval);
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user