mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5470 Stop using normalization on results it isn't valid for
This commit is contained in:
@@ -604,14 +604,20 @@ RigFemResultAddress RimGeoMechResultDefinition::resultAddress() const
|
||||
}
|
||||
else
|
||||
{
|
||||
return RigFemResultAddress( resultPositionType(),
|
||||
resultFieldName().toStdString(),
|
||||
resultComponentName().toStdString(),
|
||||
m_timeLapseBaseTimestep(),
|
||||
resultFieldName().toStdString() == RigFemPartResultsCollection::FIELD_NAME_COMPACTION
|
||||
? m_compactionRefLayer()
|
||||
: RigFemResultAddress::noCompactionValue(),
|
||||
m_normalizeByHydrostaticPressure );
|
||||
RigFemResultAddress address( resultPositionType(),
|
||||
resultFieldName().toStdString(),
|
||||
resultComponentName().toStdString(),
|
||||
m_timeLapseBaseTimestep(),
|
||||
resultFieldName().toStdString() == RigFemPartResultsCollection::FIELD_NAME_COMPACTION
|
||||
? m_compactionRefLayer()
|
||||
: RigFemResultAddress::noCompactionValue(),
|
||||
m_normalizeByHydrostaticPressure );
|
||||
if ( !RigFemPartResultsCollection::isNormalizableResult( address ) )
|
||||
{
|
||||
address.normalizedByHydrostaticPressure = false;
|
||||
}
|
||||
|
||||
return address;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user