mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5213 Show file name in biot coefficient from file UI.
This commit is contained in:
@@ -218,6 +218,25 @@ std::vector<RigFemResultAddress>
|
||||
return addressesToRemove;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::map<std::string, QString>
|
||||
RigFemPartResultsCollection::addressesInElementPropertyFiles( const std::vector<QString>& filenames )
|
||||
{
|
||||
std::map<std::string, QString> fieldsInFile;
|
||||
for ( const QString& filename : filenames )
|
||||
{
|
||||
std::vector<std::string> fields = m_elementPropertyReader->fieldsInFile( filename.toStdString() );
|
||||
for ( const std::string& field : fields )
|
||||
{
|
||||
fieldsInFile[field] = filename;
|
||||
}
|
||||
}
|
||||
|
||||
return fieldsInFile;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -61,6 +61,7 @@ public:
|
||||
|
||||
void addElementPropertyFiles( const std::vector<QString>& filenames );
|
||||
std::vector<RigFemResultAddress> removeElementPropertyFiles( const std::vector<QString>& filenames );
|
||||
std::map<std::string, QString> addressesInElementPropertyFiles( const std::vector<QString>& filenames );
|
||||
|
||||
void setCalculationParameters( double cohesion, double frictionAngleRad );
|
||||
double parameterCohesion() const { return m_cohesion; }
|
||||
|
||||
Reference in New Issue
Block a user