mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Moved building of time step names for UI to case
This commit is contained in:
@@ -23,6 +23,8 @@
|
||||
#include "RiaPreferences.h"
|
||||
#include "RifOdbReader.h"
|
||||
#include "RigGeoMechCaseData.h"
|
||||
#include "RigFemPartResultsCollection.h"
|
||||
|
||||
#include <QFile>
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimGeoMechCase, "ResInsightGeoMechCase");
|
||||
@@ -129,3 +131,19 @@ void RimGeoMechCase::initAfterRead()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QStringList RimGeoMechCase::timeStepStrings()
|
||||
{
|
||||
QStringList stringList;
|
||||
|
||||
std::vector<std::string> stepNames = geoMechData()->femPartResults()->stepNames();
|
||||
for (size_t i = 0; i < stepNames.size(); i++)
|
||||
{
|
||||
stringList += QString::fromStdString(stepNames[i]);
|
||||
}
|
||||
|
||||
return stringList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user