mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1250 Show fractures directly as child objects of wells / well path
This commit is contained in:
@@ -54,12 +54,8 @@ void RicNewSimWellFractureFeature::onActionTriggered(bool isChecked)
|
||||
RimEclipseWell* eclipseWell = nullptr;
|
||||
objHandle->firstAncestorOrThisOfType(eclipseWell);
|
||||
|
||||
RimSimWellFractureCollection* fractureCollection = nullptr;
|
||||
objHandle->firstAncestorOrThisOfType(fractureCollection);
|
||||
CVF_ASSERT(fractureCollection);
|
||||
|
||||
RimSimWellFracture* fracture = new RimSimWellFracture();
|
||||
fractureCollection->simwellFractures.push_back(fracture);
|
||||
eclipseWell->simwellFractureCollection()->simwellFractures.push_back(fracture);
|
||||
|
||||
RimOilField* oilfield = nullptr;
|
||||
objHandle->firstAncestorOrThisOfType(oilfield);
|
||||
@@ -82,7 +78,7 @@ void RicNewSimWellFractureFeature::onActionTriggered(bool isChecked)
|
||||
|
||||
fracture->updateFracturePositionFromLocation();
|
||||
|
||||
fractureCollection->updateConnectedEditors();
|
||||
eclipseWell->updateConnectedEditors();
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
|
||||
|
||||
RimEclipseView* mainView = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user