mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5653 export wbs curves with SG_EMW units
This commit is contained in:
parent
9fb2fd0e56
commit
4c0f02ceb5
@ -781,6 +781,17 @@ QString RimGeoMechResultDefinition::currentResultUnits() const
|
||||
{
|
||||
return "GPa";
|
||||
}
|
||||
else
|
||||
{
|
||||
for ( auto resultName : RiaDefines::wbsDerivedResultNames() )
|
||||
{
|
||||
if ( resultName == this->resultFieldName() )
|
||||
{
|
||||
return RiaWellLogUnitTools::sg_emwUnitString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return RiaWellLogUnitTools::noUnitString();
|
||||
}
|
||||
|
||||
@ -789,20 +800,15 @@ QString RimGeoMechResultDefinition::currentResultUnits() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimGeoMechResultDefinition::defaultLasUnits() const
|
||||
{
|
||||
QString units;
|
||||
if ( m_resultPositionType == RIG_WELLPATH_DERIVED )
|
||||
{
|
||||
RigWbsParameter param;
|
||||
if ( RigWbsParameter::findParameter( resultFieldName(), ¶m ) )
|
||||
{
|
||||
units = param.units( RigWbsParameter::LAS_FILE );
|
||||
return param.units( RigWbsParameter::LAS_FILE );
|
||||
}
|
||||
}
|
||||
if ( units.isEmpty() )
|
||||
{
|
||||
units = currentResultUnits();
|
||||
}
|
||||
return units;
|
||||
return currentResultUnits();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user