mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6134 Fracture Model: Add menu item to delete a fracture model.
This commit is contained in:
parent
fd91eaf2be
commit
f83ca79a87
@ -47,7 +47,9 @@
|
||||
#include "RimReservoirCellResultsStorage.h"
|
||||
#include "RimStimPlanColors.h"
|
||||
#include "RimStimPlanFractureTemplate.h"
|
||||
#include "RimTools.h"
|
||||
#include "RimWellPath.h"
|
||||
#include "RimWellPathCollection.h"
|
||||
#include "RimWellPathGeometryDef.h"
|
||||
#include "RimWellPathTarget.h"
|
||||
|
||||
@ -241,6 +243,8 @@ RimFractureModel::RimFractureModel()
|
||||
CAF_PDM_InitScriptableFieldNoDefault( &m_elasticProperties, "ElasticProperties", "Elastic Properties", "", "", "" );
|
||||
m_elasticProperties.uiCapability()->setUiHidden( true );
|
||||
m_elasticProperties.uiCapability()->setUiTreeHidden( true );
|
||||
|
||||
setDeletable( true );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -248,6 +252,17 @@ RimFractureModel::RimFractureModel()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimFractureModel::~RimFractureModel()
|
||||
{
|
||||
RimWellPath* wellPath = m_thicknessDirectionWellPath.value();
|
||||
RimWellPathCollection* wellPathCollection = RimTools::wellPathCollection();
|
||||
|
||||
if ( wellPath && wellPathCollection )
|
||||
{
|
||||
wellPathCollection->removeWellPath( wellPath );
|
||||
delete wellPath;
|
||||
|
||||
wellPathCollection->uiCapability()->updateConnectedEditors();
|
||||
wellPathCollection->scheduleRedrawAffectedViews();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -132,7 +132,7 @@ void RimElasticPropertiesCurve::performDataExtraction( bool* isUsingPseudoLength
|
||||
*isUsingPseudoLength = false;
|
||||
|
||||
RimEclipseCase* eclipseCase = dynamic_cast<RimEclipseCase*>( m_case.value() );
|
||||
if ( eclipseCase )
|
||||
if ( eclipseCase && m_fractureModel )
|
||||
{
|
||||
RigEclipseWellLogExtractor eclExtractor( eclipseCase->eclipseCaseData(),
|
||||
m_fractureModel->thicknessDirectionWellPath()->wellPathGeometry(),
|
||||
|
@ -179,7 +179,7 @@ void RimFractureModelCurve::performDataExtraction( bool* isUsingPseudoLength )
|
||||
*isUsingPseudoLength = false;
|
||||
|
||||
RimEclipseCase* eclipseCase = dynamic_cast<RimEclipseCase*>( m_case.value() );
|
||||
if ( eclipseCase )
|
||||
if ( eclipseCase && m_fractureModel )
|
||||
{
|
||||
RigEclipseWellLogExtractor eclExtractor( eclipseCase->eclipseCaseData(),
|
||||
m_fractureModel->thicknessDirectionWellPath()->wellPathGeometry(),
|
||||
|
@ -110,7 +110,7 @@ void RimFractureModelStressCurve::performDataExtraction( bool* isUsingPseudoLeng
|
||||
// Extract porosity data: get the porosity values from parent
|
||||
RimFractureModelPlot* fractureModelPlot;
|
||||
firstAncestorOrThisOfType( fractureModelPlot );
|
||||
if ( !fractureModelPlot )
|
||||
if ( !fractureModelPlot || !m_fractureModel )
|
||||
{
|
||||
RiaLogging::error( QString( "No fracture model plot found." ) );
|
||||
return;
|
||||
@ -196,6 +196,9 @@ QString RimFractureModelStressCurve::createCurveAutoName()
|
||||
return caf::AppEnum<RiaDefines::CurveProperty>::uiText( m_curveProperty() );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFractureModelStressCurve::addDatapointsForBottomOfLayers( std::vector<double>& tvDepthValues,
|
||||
std::vector<double>& stress,
|
||||
const std::vector<double>& stressGradients )
|
||||
|
@ -107,7 +107,7 @@ void RimLayerCurve::performDataExtraction( bool* isUsingPseudoLength )
|
||||
*isUsingPseudoLength = false;
|
||||
|
||||
RimEclipseCase* eclipseCase = dynamic_cast<RimEclipseCase*>( m_case.value() );
|
||||
if ( eclipseCase )
|
||||
if ( eclipseCase && m_fractureModel )
|
||||
{
|
||||
RigEclipseWellLogExtractor eclExtractor( eclipseCase->eclipseCaseData(),
|
||||
m_fractureModel->thicknessDirectionWellPath()->wellPathGeometry(),
|
||||
|
Loading…
Reference in New Issue
Block a user