Skip to content

Commit

Permalink
StimPlanModel: Use default overburden facies for pressure depletion.
Browse files Browse the repository at this point in the history
  • Loading branch information
kriben committed Sep 18, 2023
1 parent 98fc6ff commit ad9886a
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit ad9886a

Please sign in to comment.