#3247 Create Multiple Fractures. Det default result variable to Conductivity

This commit is contained in:
Bjørn Erik Jensen 2018-08-27 11:22:57 +02:00
parent 9bff5881a3
commit c32590a5da

View File

@ -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);