#3134 Ensemble parameters import. Search 3 folder levels up. Improved warning message

This commit is contained in:
Bjørn Erik Jensen committed 2018-07-02 14:53:13 +02:00
1 parent 02059debf9
commit ec26d8638a
2 files changed
+6 -1

No files matched your search

@@ -87,6 +87,11 @@ bool RicImportEnsembleFeature::validateEnsembleCases(std::vector<RimSummaryCase*
}
}
errors.append("\n");
errors.append("No parameters file (parameters.txt or runspecification.xml) was found in \n");
errors.append("the searched folders. ResInsight searches the home folder of the summary \n");
errors.append("case file and the three folder levels above that.\n");
if (!errors.isEmpty())
{
throw errors;
@@ -319,7 +319,7 @@ void RifCaseRealizationRunspecificationReader::closeDataStream()
//--------------------------------------------------------------------------------------------------
QString RifCaseRealizationParametersFileLocator::locate(const QString& modelPath)
{
int MAX_LEVELS_UP = 2;
int MAX_LEVELS_UP = 3;
int dirLevel = 0;
QDir qdir(modelPath);