mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1947 RFT/PLT Plot: Update curve auto name
This commit is contained in:
@@ -91,6 +91,8 @@ RimEclipseResultCase::RimEclipseResultCase()
|
||||
|
||||
m_activeCellInfoIsReadFromFile = false;
|
||||
m_gridAndWellDataIsReadFromFile = false;
|
||||
|
||||
m_caseName = "";
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -203,8 +205,12 @@ bool RimEclipseResultCase::importGridAndResultMetaData(bool showTimeStepFilter)
|
||||
QStringList fileSplitOnDot = caseFileName().split(".");
|
||||
if (fileSplitOnDot.size() == 2)
|
||||
{
|
||||
QStringList fileSplitOnBackSlash = fileSplitOnDot[0].split("\\");
|
||||
m_caseName = fileSplitOnBackSlash.back();
|
||||
|
||||
QString rftFile = fileSplitOnDot[0] + ".RFT";
|
||||
std::string rftFileStdString = rftFile.toStdString();
|
||||
|
||||
if (std::ifstream(rftFileStdString.c_str()))
|
||||
{
|
||||
m_readerEclipseRft = new RifReaderEclipseRft(rftFileStdString);
|
||||
|
||||
Reference in New Issue
Block a user