Support removing user specified keywords from output sector model.

This commit is contained in:
jonjenssen authored and JJ committed 2026-01-12 08:13:43 +01:00
1 parent 1101d74b69
commit 3821434022
8 files changed
+124 -17

No files matched your search

@@ -75,6 +75,16 @@ std::expected<void, QString> RigSimulationInputTool::exportSimulationInput( RimE
QString outputFolder = exportGridInfo.absolutePath();
QString outputFile = exportGridInfo.completeBaseName() + ".DATA";
int noOfRemovedKeywords = 0;
for ( auto& kwToRemove : settings.keywordsToRemove() )
{
noOfRemovedKeywords += deckFile.removeKeywords( kwToRemove );
}
if ( noOfRemovedKeywords > 0 )
{
RiaLogging::info( QString( "Removed %1 user specified keywords from deck file." ).arg( noOfRemovedKeywords ) );
}
if ( auto result = updateCornerPointGridInDeckFile( &eclipseCase, settings, deckFile ); !result )
{
return result;