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

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

View File

@ -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;

View File

@ -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);