mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
StimPlanModel: Use default overburden facies for pressure depletion.
This commit is contained in:
parent
1e2f8fadef
commit
0ca609fdac
@ -763,8 +763,14 @@ bool RimStimPlanModelPressureCalculator::handleFaciesWithInitialPressure( const
|
||||
|
||||
for ( size_t i = 0; i < faciesValues.size(); i++ )
|
||||
{
|
||||
// Use the values from initial pressure curve
|
||||
int faciesValue = static_cast<int>( faciesValues[i] );
|
||||
double rawFaciesValue = faciesValues[i];
|
||||
if ( std::isinf( faciesValues[i] ) )
|
||||
{
|
||||
// Facies is only inf in the overburden: replace with default facies
|
||||
rawFaciesValue = stimPlanModel->getDefaultForMissingOverburdenValue( RiaDefines::CurveProperty::FACIES );
|
||||
}
|
||||
|
||||
int faciesValue = static_cast<int>( rawFaciesValue );
|
||||
double currentPressure = values[i];
|
||||
double initialPressure = initialPressureValues[i];
|
||||
auto faciesConfig = faciesWithInitialPressure.find( faciesValue );
|
||||
|
Loading…
Reference in New Issue
Block a user