mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
StimPlanModel: replace assert with error handling
This commit is contained in:
parent
f498138f4e
commit
dde4f021ab
@ -745,8 +745,12 @@ bool RimStimPlanModelPressureCalculator::handleFaciesWithInitialPressure( const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
CAF_ASSERT( faciesValues.size() == initialPressureValues.size() );
|
if ( faciesValues.size() != initialPressureValues.size() || faciesValues.size() != values.size() )
|
||||||
CAF_ASSERT( faciesValues.size() == values.size() );
|
{
|
||||||
|
RiaLogging::error( "Unable to handle facies with initial pressure: result length mismatch" );
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
for ( size_t i = 0; i < faciesValues.size(); i++ )
|
for ( size_t i = 0; i < faciesValues.size(); i++ )
|
||||||
{
|
{
|
||||||
// Use the values from initial pressure curve
|
// Use the values from initial pressure curve
|
||||||
|
Loading…
Reference in New Issue
Block a user