mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2372 Elm props: Map modulus and ratio ui names
This commit is contained in:
parent
58123f4a49
commit
96bff27519
@ -68,14 +68,14 @@ void RifElementPropertyReader::removeFile(const std::string& fileName)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::map<std::string, std::vector<std::string>> RifElementPropertyReader::scalarElementFields() const
|
||||
std::vector<std::string> RifElementPropertyReader::scalarElementFields() const
|
||||
{
|
||||
std::map<std::string, std::vector<std::string>> fields;
|
||||
std::vector<std::string> fields;
|
||||
|
||||
for (std::map<std::string, RifElementPropertyMetadata>::const_iterator field = m_fieldsMetaData.begin();
|
||||
field != m_fieldsMetaData.end(); field++)
|
||||
{
|
||||
fields[field->first];
|
||||
fields.push_back(field->first);
|
||||
}
|
||||
|
||||
return fields;
|
||||
|
@ -42,7 +42,7 @@ public:
|
||||
void addFile(const std::string& fileName);
|
||||
void removeFile(const std::string& fileName);
|
||||
|
||||
std::map<std::string, std::vector<std::string>> scalarElementFields() const;
|
||||
std::vector<std::string> scalarElementFields() const;
|
||||
|
||||
std::map<std::string, std::vector<float>> readAllElementPropertiesInFileContainingField(const std::string& fieldName);
|
||||
|
||||
|
@ -451,7 +451,10 @@ std::map<std::string, std::vector<std::string> > RigFemPartResultsCollection::sc
|
||||
}
|
||||
else if (resPos == RIG_ELEMENT)
|
||||
{
|
||||
fieldCompNames = m_elementPropertyReader->scalarElementFields();
|
||||
for (const std::string& field : m_elementPropertyReader->scalarElementFields())
|
||||
{
|
||||
fieldCompNames[field];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -139,6 +139,7 @@ QList<caf::PdmOptionItemInfo> RimGeoMechResultDefinition::calculateValueOptions(
|
||||
if (&m_resultVariableUiField == fieldNeedingOptions)
|
||||
{
|
||||
std::map<std::string, std::vector<std::string> > fieldCompNames = getResultMetaDataForUIFieldSetting();
|
||||
|
||||
QStringList uiVarNames;
|
||||
QStringList varNames;
|
||||
bool isNeedingTimeLapseStrings = m_isTimeLapseResultUiField() && (m_resultPositionTypeUiField() != RIG_FORMATION_NAMES);
|
||||
@ -435,6 +436,8 @@ QString RimGeoMechResultDefinition::convertToUiResultFieldName(QString resultFie
|
||||
if (resultFieldName == "S") newName = "NativeAbaqus Stress";
|
||||
if (resultFieldName == "NE") newName = "E"; // Make NE and NS appear as E and SE
|
||||
if (resultFieldName == "POR-Bar") newName = "POR"; // POR-Bar appear as POR
|
||||
if (resultFieldName == "MODULUS") newName = "Young's Modulus";
|
||||
if (resultFieldName == "RATIO") newName = "Poisson's Ratio";
|
||||
|
||||
if (isTimeLapseResultList) newName += "_D" + QString::number(baseFrameIdx);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user