mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-29 08:30:17 -05:00
#12996 Resdata: Prefer UNRST over FUNRST
This commit is contained in:
1 parent
62188fa9f2
commit
6de145ef50
1 file changed
+11
-2
@@ -518,9 +518,18 @@ cvf::ref<RifEclipseRestartDataAccess> RifEclipseOutputFileTools::createDynamicRe
|
||||
cvf::ref<RifEclipseRestartDataAccess> resultsAccess;
|
||||
|
||||
// Look for unified restart file
|
||||
QString unrstFileName = RifEclipseOutputFileTools::firstFileNameOfType( filesWithSameBaseName, ECL_UNIFIED_RESTART_FILE );
|
||||
if ( unrstFileName.size() > 0 )
|
||||
auto unrstFileNames = RifEclipseOutputFileTools::filterFileNamesOfType( filesWithSameBaseName, ECL_UNIFIED_RESTART_FILE );
|
||||
if ( !unrstFileNames.empty() )
|
||||
{
|
||||
QString unrstFileName = unrstFileNames.front();
|
||||
if ( unrstFileNames.size() > 1 )
|
||||
{
|
||||
for ( const auto& candidate : unrstFileNames )
|
||||
{
|
||||
if ( candidate.endsWith( ".UNRST" ) ) unrstFileName = candidate;
|
||||
}
|
||||
}
|
||||
|
||||
resultsAccess = new RifEclipseUnifiedRestartFileAccess();
|
||||
resultsAccess->setRestartFiles( QStringList( unrstFileName ) );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user