mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6931 Fix missing scaling for porosity and permeability.
This commit is contained in:
parent
f9cc1bd95c
commit
bd2678fe57
@ -427,17 +427,19 @@ void RimStimPlanModelWellLogCalculator::scaleByNetToGross( const RimStimPlanMode
|
||||
return;
|
||||
}
|
||||
|
||||
double cutoff = 1.0;
|
||||
if ( stimPlanModel->stimPlanModelTemplate() && stimPlanModel->stimPlanModelTemplate()->nonNetLayers() &&
|
||||
stimPlanModel->stimPlanModelTemplate()->nonNetLayers()->isChecked() )
|
||||
double netToGrossCutoff = 1.0;
|
||||
bool useNetToGross = false;
|
||||
|
||||
if ( stimPlanModel->stimPlanModelTemplate() && stimPlanModel->stimPlanModelTemplate()->nonNetLayers() )
|
||||
{
|
||||
cutoff = stimPlanModel->stimPlanModelTemplate()->nonNetLayers()->cutOff();
|
||||
netToGrossCutoff = stimPlanModel->stimPlanModelTemplate()->nonNetLayers()->cutOff();
|
||||
useNetToGross = !netToGross.empty() && stimPlanModel->stimPlanModelTemplate()->nonNetLayers()->isChecked();
|
||||
}
|
||||
|
||||
for ( size_t i = 0; i < values.size(); i++ )
|
||||
{
|
||||
double ntg = netToGross[i];
|
||||
if ( ntg <= cutoff )
|
||||
if ( useNetToGross && ntg <= netToGrossCutoff )
|
||||
{
|
||||
values[i] = ntg * values[i];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user