Sector Export: add OPERNUM result.

This commit is contained in:
Kristian Bendiksen committed 2025-09-26 15:28:29 +02:00
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() );