mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-01 08:38:00 -06:00
Sector Export: add OPERNUM result.
This commit is contained in:
1 parent
b07e49258e
commit
fdbb07b8cd
4 files changed
+281
No files matched your search
@@ -151,6 +151,9 @@ void RicExportEclipseSectorModelFeature::executeCommand( RimEclipseView*
|
||||
if ( !bordnumVisibility.isNull() )
|
||||
{
|
||||
RigEclipseResultTools::generateBorderResult( view->eclipseCase(), bordnumVisibility, "BORDNUM" );
|
||||
|
||||
// Generate OPERNUM result based on BORDNUM (border cells get max existing OPERNUM + 1)
|
||||
RigEclipseResultTools::generateOperNumResult( view->eclipseCase() );
|
||||
}
|
||||
|
||||
if ( exportSettings.exportParameters() != RicExportEclipseSectorModelUi::EXPORT_NO_RESULTS )
|
||||
@@ -164,6 +167,12 @@ void RicExportEclipseSectorModelFeature::executeCommand( RimEclipseView*
|
||||
keywords.push_back( "BORDNUM" );
|
||||
}
|
||||
|
||||
// Automatically add OPERNUM to the keywords list if not already present
|
||||
if ( std::find( keywords.begin(), keywords.end(), "OPERNUM" ) == keywords.end() )
|
||||
{
|
||||
keywords.push_back( "OPERNUM" );
|
||||
}
|
||||
|
||||
if ( exportSettings.exportParameters == RicExportEclipseSectorModelUi::EXPORT_TO_SEPARATE_FILE_PER_RESULT )
|
||||
{
|
||||
QFileInfo info( exportSettings.exportGridFilename() );
|
||||
|
||||
Reference in new issue
Block a user