mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2447 Fracture : Set default conductivity result when creating the first fracture
This commit is contained in:
parent
519771cb38
commit
c695d40266
@ -21,8 +21,10 @@
|
||||
#include "RiaApplication.h"
|
||||
#include "RigEclipseCaseData.h"
|
||||
|
||||
#include "Rim3dView.h"
|
||||
#include "RimCase.h"
|
||||
#include "RimEclipseResultCase.h"
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimEllipseFractureTemplate.h"
|
||||
#include "RimFractureTemplateCollection.h"
|
||||
#include "RimOilField.h"
|
||||
@ -30,7 +32,7 @@
|
||||
#include "RimSimWellFracture.h"
|
||||
#include "RimSimWellFractureCollection.h"
|
||||
#include "RimSimWellInView.h"
|
||||
#include "Rim3dView.h"
|
||||
#include "RimStimPlanColors.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
#include "RiuSelectionManager.h"
|
||||
@ -68,6 +70,15 @@ void RicNewSimWellFractureAtPosFeature::onActionTriggered(bool isChecked)
|
||||
if (!fractureCollection) return;
|
||||
|
||||
RimSimWellFracture* fracture = new RimSimWellFracture();
|
||||
if (fractureCollection->simwellFractures.empty())
|
||||
{
|
||||
RimEclipseView* activeView = dynamic_cast<RimEclipseView*>(RiaApplication::instance()->activeReservoirView());
|
||||
if (activeView)
|
||||
{
|
||||
activeView->fractureColors->setDefaultResultName();
|
||||
}
|
||||
}
|
||||
|
||||
fractureCollection->simwellFractures.push_back(fracture);
|
||||
|
||||
fracture->setClosestWellCoord(simWellItem->m_domainCoord, simWellItem->m_branchIndex);
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "RimOilField.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimSimWellFracture.h"
|
||||
#include "RimStimPlanColors.h"
|
||||
#include "RimSimWellFractureCollection.h"
|
||||
#include "RimSimWellInView.h"
|
||||
|
||||
@ -63,6 +64,15 @@ void RicNewSimWellFractureFeature::onActionTriggered(bool isChecked)
|
||||
objHandle->firstAncestorOrThisOfType(eclipseWell);
|
||||
|
||||
RimSimWellFracture* fracture = new RimSimWellFracture();
|
||||
if (eclipseWell->simwellFractureCollection()->simwellFractures.empty())
|
||||
{
|
||||
RimEclipseView* activeView = dynamic_cast<RimEclipseView*>(RiaApplication::instance()->activeReservoirView());
|
||||
if (activeView)
|
||||
{
|
||||
activeView->fractureColors->setDefaultResultName();
|
||||
}
|
||||
}
|
||||
|
||||
eclipseWell->simwellFractureCollection()->simwellFractures.push_back(fracture);
|
||||
|
||||
RimOilField* oilfield = nullptr;
|
||||
|
@ -18,21 +18,24 @@
|
||||
|
||||
#include "RicNewWellPathFractureFeature.h"
|
||||
|
||||
#include "RicFractureNameGenerator.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
|
||||
#include "RicFractureNameGenerator.h"
|
||||
|
||||
#include "RigWellPath.h"
|
||||
|
||||
#include "RimCase.h"
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimEllipseFractureTemplate.h"
|
||||
#include "RimFractureTemplateCollection.h"
|
||||
#include "RimOilField.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimStimPlanColors.h"
|
||||
#include "RimWellPath.h"
|
||||
#include "RimWellPathCollection.h"
|
||||
#include "RimWellPathFracture.h"
|
||||
#include "RimWellPathFractureCollection.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
#include "WellPathCommands/RicWellPathsUnitSystemSettingsImpl.h"
|
||||
@ -58,6 +61,15 @@ void RicNewWellPathFractureFeature::addFracture(RimWellPath* wellPath, double me
|
||||
RimWellPathFractureCollection* fractureCollection = wellPath->fractureCollection();
|
||||
CVF_ASSERT(fractureCollection);
|
||||
|
||||
if (fractureCollection->fractures.empty())
|
||||
{
|
||||
RimEclipseView* activeView = dynamic_cast<RimEclipseView*>(RiaApplication::instance()->activeReservoirView());
|
||||
if (activeView)
|
||||
{
|
||||
activeView->fractureColors->setDefaultResultName();
|
||||
}
|
||||
}
|
||||
|
||||
RimWellPathFracture* fracture = new RimWellPathFracture();
|
||||
fractureCollection->fractures.push_back(fracture);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user