mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2441: Fracture Colors : Make sure conductivity result is set on template for old project files
This commit is contained in:
@@ -313,6 +313,28 @@ void RimStimPlanColors::updateStimPlanTemplates() const
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimStimPlanColors::updateConductivityResultName()
|
||||
{
|
||||
// Conductivity result name as reported from the XML file was moved to the fracture template
|
||||
// Replace all conductivity names with the one and only conductivity uiName reported from by fracture template
|
||||
|
||||
if (m_resultNameAndUnit().contains("conductivity", Qt::CaseInsensitive))
|
||||
{
|
||||
RimFractureTemplateCollection* fractureTemplates = fractureTemplateCollection();
|
||||
for (auto resultNameAndUnit : fractureTemplates->stimPlanResultNamesAndUnits())
|
||||
{
|
||||
if (resultNameAndUnit.first.contains("conductivity", Qt::CaseInsensitive))
|
||||
{
|
||||
QString resultNameAndUnitString = toString(resultNameAndUnit);
|
||||
m_resultNameAndUnit = resultNameAndUnitString;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user