mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5399 Export LAS-curves of WBS-parameters with the LAS-name rather than the Ui name
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "RigFemResultAddress.h"
|
||||
#include "RigFormationNames.h"
|
||||
#include "RigGeoMechCaseData.h"
|
||||
#include "RigWbsParameter.h"
|
||||
|
||||
#include "RiaDefines.h"
|
||||
|
||||
@@ -624,6 +625,38 @@ QString RimGeoMechResultDefinition::resultComponentUiName() const
|
||||
return m_resultComponentName();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimGeoMechResultDefinition::resultVariableUiName() const
|
||||
{
|
||||
QString name = resultFieldName();
|
||||
QString resCompName = resultComponentName();
|
||||
|
||||
if ( !resCompName.isEmpty() )
|
||||
{
|
||||
name += "." + resCompName;
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimGeoMechResultDefinition::resultVariableName() const
|
||||
{
|
||||
if ( m_resultPositionType == RIG_WELLPATH_DERIVED )
|
||||
{
|
||||
RigWbsParameter param;
|
||||
if ( RigWbsParameter::findParameter( resultFieldName(), ¶m ) )
|
||||
{
|
||||
QString lasName = param.sourceLabel( RigWbsParameter::LAS_FILE );
|
||||
if ( !lasName.isEmpty() ) return lasName;
|
||||
}
|
||||
}
|
||||
return resultVariableUiName();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user