mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -05:00
Support removing user specified keywords from output sector model.
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user