#3009 Warn user when loading an eclipse EGRID with mixed UPPER and lower case file name.

This commit is contained in:
Gaute Lindkvist
2018-06-11 09:58:34 +02:00
parent 2eee3f770b
commit 62792b59c4
3 changed files with 18 additions and 0 deletions

View File

@@ -51,6 +51,7 @@
#include "ert/ecl/ecl_nnc_data.h"
#include <QDateTime>
#include <QFileInfo>
#include <cmath> // Needed for HUGE_VAL on Linux
#include <iostream>
@@ -361,6 +362,14 @@ bool RifReaderEclipseOutput::open(const QString& fileName, RigEclipseCaseData* e
progInfo.setProgressDescription("Reading Grid");
if (!RifEclipseOutputFileTools::isValidEclipseFileName(fileName))
{
QString errorMessage = QFileInfo(fileName).fileName() + QString(" is not a valid Eclipse file name.\n"
"Please make sure the file does not contain a mix of upper and lower case letters.");
RiaLogging::error(errorMessage);
return false;
}
// Get set of files
QStringList fileSet;
if (!RifEclipseOutputFileTools::findSiblingFilesWithSameBaseName(fileName, &fileSet)) return false;