mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1037 - pre-proto - added classes RimSimWellFracture and RimSimWellFractureCollection, and functions for creating new / deleting.
This commit is contained in:
@@ -22,8 +22,8 @@
|
||||
|
||||
#include "RimCase.h"
|
||||
#include "RimEclipseWell.h"
|
||||
#include "RimFracture.h"
|
||||
#include "RimFractureCollection.h"
|
||||
#include "RimSimWellFracture.h"
|
||||
#include "RimSimWellFractureCollection.h"
|
||||
#include "RimProject.h"
|
||||
|
||||
#include "cafSelectionManager.h"
|
||||
@@ -49,12 +49,12 @@ void RicNewSimWellFractureFeature::onActionTriggered(bool isChecked)
|
||||
RimEclipseWell* eclipseWell = nullptr;
|
||||
objHandle->firstAncestorOrThisOfType(eclipseWell);
|
||||
|
||||
RimFractureCollection* fractureCollection = nullptr;
|
||||
RimSimWellFractureCollection* fractureCollection = nullptr;
|
||||
objHandle->firstAncestorOrThisOfType(fractureCollection);
|
||||
CVF_ASSERT(fractureCollection);
|
||||
|
||||
RimFracture* fracture = new RimFracture();
|
||||
fractureCollection->fractures.push_back(fracture);
|
||||
RimSimWellFracture* fracture = new RimSimWellFracture();
|
||||
fractureCollection->simwellFractures.push_back(fracture);
|
||||
|
||||
fracture->name = "New Simulation Well Fracture";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user