mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
StimPlan Model: handle missing default facies in elastic property calculator.
This commit is contained in:
parent
3bdb57d637
commit
dd05380039
@ -159,6 +159,13 @@ bool RimStimPlanModelElasticPropertyCalculator::calculate( RiaDefines::CurveProp
|
||||
return false;
|
||||
}
|
||||
|
||||
QString defaultFacies = stimPlanModelTemplate->defaultFacies();
|
||||
if ( defaultFacies.isEmpty() )
|
||||
{
|
||||
RiaLogging::error( QString( "No default facies defined when extracting elastic properties." ) );
|
||||
return false;
|
||||
}
|
||||
|
||||
RimColorLegend* colorLegend = faciesProperties->colorLegend();
|
||||
if ( !colorLegend )
|
||||
{
|
||||
@ -169,7 +176,7 @@ bool RimStimPlanModelElasticPropertyCalculator::calculate( RiaDefines::CurveProp
|
||||
RimElasticProperties* elasticProperties = stimPlanModelTemplate->elasticProperties();
|
||||
if ( !elasticProperties )
|
||||
{
|
||||
RiaLogging::error( QString( "No elastic properties found weh extracting elastic properties." ) );
|
||||
RiaLogging::error( QString( "No elastic properties found when extracting elastic properties." ) );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user