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:
parent
b98606af52
commit
06716bc664
@ -196,6 +196,11 @@ void RimElasticPropertiesCurve::performDataExtraction( bool* isUsingPseudoLength
|
||||
|
||||
std::vector<double> poroValues;
|
||||
fractureModelPlot->getPorosityValues( poroValues );
|
||||
if ( poroValues.empty() )
|
||||
{
|
||||
RiaLogging::error( QString( "Empty porosity data found when extracting elastic properties." ) );
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: make this settable??
|
||||
QString colorLegendName = RiaDefines::faciesColorLegendName();
|
||||
|
@ -160,6 +160,11 @@ void RimLayerCurve::performDataExtraction( bool* isUsingPseudoLength )
|
||||
|
||||
std::vector<double> faciesValues;
|
||||
fractureModelPlot->getFaciesValues( faciesValues );
|
||||
if ( faciesValues.empty() )
|
||||
{
|
||||
RiaLogging::error( QString( "Empty facies data found for layer curve." ) );
|
||||
return;
|
||||
}
|
||||
|
||||
assert( faciesValues.size() == curveData.data.size() );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user