Pressure Differential Depletion: Make sure we can set WBHP for all types of trans scaling.

* It is needed for calculating fracture pressures.
This commit is contained in:
Gaute Lindkvist 2018-09-17 11:29:47 +02:00
parent 9dd6ccb24d
commit 4aec08b501

View File

@ -289,8 +289,7 @@ void RicExportCompletionDataSettingsUi::defineUiOrdering(QString uiConfigName, c
group->add(&transScalingWBHP);
group->add(&transScalingCorrection);
transScalingWBHPTimeStep.uiCapability()->setUiReadOnly(transScalingType() == RicExportFractureCompletionsImpl::NO_SCALING ||
transScalingType() != RicExportFractureCompletionsImpl::MATRIX_TO_WELL_DP_OVER_INITIAL_DP);
transScalingWBHPTimeStep.uiCapability()->setUiReadOnly(transScalingType() == RicExportFractureCompletionsImpl::NO_SCALING);
transScalingWBHP.uiCapability()->setUiReadOnly(transScalingWBHPTimeStep.uiCapability()->isUiReadOnly() ||
transScalingWBHPTimeStep() != -1);
transScalingCorrection.uiCapability()->setUiReadOnly(transScalingType() == RicExportFractureCompletionsImpl::NO_SCALING);