#6134 Fracture Model: Add menu item to delete a fracture model.

This commit is contained in:
Kristian Bendiksen
2020-09-11 10:37:47 +02:00
parent fd91eaf2be
commit f83ca79a87
5 changed files with 22 additions and 4 deletions

View File

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