mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 18:32:10 -05:00
#7871 StimPlan Model: Add check-box for EQLNUM pressure interpolation
This commit is contained in:
1 parent
56a86eee5f
commit
511439277a
3 files changed
+29
-7
No files matched your search
+9
-7
@@ -183,6 +183,7 @@ bool RimStimPlanModelPressureCalculator::extractValuesForProperty( RiaDefines::C
|
||||
values = results;
|
||||
}
|
||||
|
||||
bool useEqlnumForPressureInterpolation = stimPlanModel->stimPlanModelTemplate()->useEqlnumForPressureInterpolation();
|
||||
if ( curveProperty == RiaDefines::CurveProperty::INITIAL_PRESSURE )
|
||||
{
|
||||
auto hasMissingValues = []( const std::vector<double>& vec ) {
|
||||
@@ -191,12 +192,12 @@ bool RimStimPlanModelPressureCalculator::extractValuesForProperty( RiaDefines::C
|
||||
|
||||
if ( hasMissingValues( values ) )
|
||||
{
|
||||
if ( !interpolateInitialPressureByEquilibrationRegion( curveProperty,
|
||||
stimPlanModel,
|
||||
timeStep,
|
||||
measuredDepthValues,
|
||||
tvDepthValues,
|
||||
values ) )
|
||||
if ( useEqlnumForPressureInterpolation && !interpolateInitialPressureByEquilibrationRegion( curveProperty,
|
||||
stimPlanModel,
|
||||
timeStep,
|
||||
measuredDepthValues,
|
||||
tvDepthValues,
|
||||
values ) )
|
||||
{
|
||||
RiaLogging::error( "Pressure interpolation by equilibration region failed." );
|
||||
}
|
||||
@@ -210,7 +211,8 @@ bool RimStimPlanModelPressureCalculator::extractValuesForProperty( RiaDefines::C
|
||||
{
|
||||
std::vector<double> initialPressureValues = values;
|
||||
values.clear();
|
||||
if ( !interpolatePressureDifferenceByEquilibrationRegion( curveProperty,
|
||||
if ( useEqlnumForPressureInterpolation &&
|
||||
!interpolatePressureDifferenceByEquilibrationRegion( curveProperty,
|
||||
stimPlanModel,
|
||||
timeStep,
|
||||
measuredDepthValues,
|
||||
|
||||
Reference in new issue
Block a user