mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3247 Create Multiple Fractures. Det default result variable to Conductivity
This commit is contained in:
parent
9bff5881a3
commit
c32590a5da
@ -33,6 +33,8 @@
|
|||||||
#include "RimWellPath.h"
|
#include "RimWellPath.h"
|
||||||
#include "RimWellPathFracture.h"
|
#include "RimWellPathFracture.h"
|
||||||
#include "RimWellPathFractureCollection.h"
|
#include "RimWellPathFractureCollection.h"
|
||||||
|
#include "RimEclipseView.h"
|
||||||
|
#include "RimStimPlanColors.h"
|
||||||
|
|
||||||
#include "Riu3DMainWindowTools.h"
|
#include "Riu3DMainWindowTools.h"
|
||||||
|
|
||||||
@ -112,6 +114,16 @@ void RicCreateMultipleFracturesFeature::slotAppendFractures()
|
|||||||
{
|
{
|
||||||
RimWellPathFractureCollection* fractureCollection = item.wellPath->fractureCollection();
|
RimWellPathFractureCollection* fractureCollection = item.wellPath->fractureCollection();
|
||||||
|
|
||||||
|
// If this is the first fracture, set default result name
|
||||||
|
if (fractureCollection->fractures.empty())
|
||||||
|
{
|
||||||
|
RimEclipseView* activeView = dynamic_cast<RimEclipseView*>(RiaApplication::instance()->activeReservoirView());
|
||||||
|
if (activeView)
|
||||||
|
{
|
||||||
|
activeView->fractureColors()->setDefaultResultName();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
RimWellPathFracture* fracture = new RimWellPathFracture();
|
RimWellPathFracture* fracture = new RimWellPathFracture();
|
||||||
fractureCollection->fractures.push_back(fracture);
|
fractureCollection->fractures.push_back(fracture);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user