mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 23:20:29 -05:00
Improves support for ESMRY for import dialogs
- The file dialog now presents both SMSPEC and ESMRY types and allows the user to select the desired format. - Fixes logic error in summary case import - Adds ESMRY file support to the import dialog
This commit is contained in:
1 parent
b0a86de653
commit
e8805df3ff
4 files changed
+29
-2
No files matched your search
@@ -1195,6 +1195,8 @@ QString RicRecursiveFileSearchDialog::fileExtensionForType( FileType fileType )
|
||||
return "GRID";
|
||||
case FileType::SMSPEC:
|
||||
return "SMSPEC";
|
||||
case FileType::ESMRY:
|
||||
return "ESMRY";
|
||||
case FileType::STIMPLAN_FRACTURE:
|
||||
return "XML";
|
||||
case FileType::LAS:
|
||||
@@ -1225,6 +1227,8 @@ QString RicRecursiveFileSearchDialog::fileNameForType( FileType fileType )
|
||||
return "Eclipse Grid File";
|
||||
case FileType::SMSPEC:
|
||||
return "Eclipse Summary File";
|
||||
case FileType::ESMRY:
|
||||
return "ESMRY Summary File";
|
||||
case FileType::STIMPLAN_FRACTURE:
|
||||
return "StimPlan Fracture";
|
||||
case FileType::LAS:
|
||||
@@ -1248,6 +1252,7 @@ RiaDefines::FileType RicRecursiveFileSearchDialog::mapSummaryFileType( RicRecurs
|
||||
switch ( fileType )
|
||||
{
|
||||
case RicRecursiveFileSearchDialog::FileType::SMSPEC:
|
||||
case RicRecursiveFileSearchDialog::FileType::ESMRY:
|
||||
return RiaDefines::FileType::SMSPEC;
|
||||
case RicRecursiveFileSearchDialog::FileType::REVEAL_SUMMARY:
|
||||
return RiaDefines::FileType::REVEAL_SUMMARY;
|
||||
|
||||
Reference in new issue
Block a user