mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6210 Fracture Model Plot: Fix crash when changing MD.
This commit is contained in:
@@ -196,6 +196,11 @@ void RimElasticPropertiesCurve::performDataExtraction( bool* isUsingPseudoLength
|
|||||||
|
|
||||||
std::vector<double> poroValues;
|
std::vector<double> poroValues;
|
||||||
fractureModelPlot->getPorosityValues( poroValues );
|
fractureModelPlot->getPorosityValues( poroValues );
|
||||||
|
if ( poroValues.empty() )
|
||||||
|
{
|
||||||
|
RiaLogging::error( QString( "Empty porosity data found when extracting elastic properties." ) );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: make this settable??
|
// TODO: make this settable??
|
||||||
QString colorLegendName = RiaDefines::faciesColorLegendName();
|
QString colorLegendName = RiaDefines::faciesColorLegendName();
|
||||||
|
|||||||
@@ -160,6 +160,11 @@ void RimLayerCurve::performDataExtraction( bool* isUsingPseudoLength )
|
|||||||
|
|
||||||
std::vector<double> faciesValues;
|
std::vector<double> faciesValues;
|
||||||
fractureModelPlot->getFaciesValues( faciesValues );
|
fractureModelPlot->getFaciesValues( faciesValues );
|
||||||
|
if ( faciesValues.empty() )
|
||||||
|
{
|
||||||
|
RiaLogging::error( QString( "Empty facies data found for layer curve." ) );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
assert( faciesValues.size() == curveData.data.size() );
|
assert( faciesValues.size() == curveData.data.size() );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user