mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-01 16:43:03 -06:00
Remove MAPAXES keyword (for now).
This commit is contained in:
1 parent
2e363e4d73
commit
1cc1073af0
3 files changed
+8
-5
No files matched your search
@@ -350,7 +350,10 @@ std::expected<void, QString> RicExportEclipseSectorModelFeature::exportSimulatio
|
||||
}
|
||||
|
||||
// Remove SKIP keywords that were used as placeholders for filtered-out keywords
|
||||
deckFile.removeSkipKeywords();
|
||||
deckFile.removeKeywords( "SKIP" );
|
||||
|
||||
// TODO: fix this..
|
||||
deckFile.removeKeywords( "MAPAXES" );
|
||||
|
||||
// Save the modified deck file to the export directory
|
||||
if ( !deckFile.saveDeck( outputFolder.toStdString(), outputFile.toStdString() ) )
|
||||
|
||||
@@ -905,16 +905,16 @@ bool RifOpmFlowDeckFile::replaceKeywordAtIndex( const Opm::FileDeck::Index& inde
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifOpmFlowDeckFile::removeSkipKeywords()
|
||||
void RifOpmFlowDeckFile::removeKeywords( const std::string& keywordName )
|
||||
{
|
||||
if ( m_fileDeck.get() == nullptr ) return;
|
||||
|
||||
// Find all SKIP keywords
|
||||
// Find all the matching keywords
|
||||
std::vector<Opm::FileDeck::Index> skipIndices;
|
||||
for ( auto it = m_fileDeck->start(); it != m_fileDeck->stop(); it++ )
|
||||
{
|
||||
const auto& kw = m_fileDeck->operator[]( it );
|
||||
if ( kw.name() == "SKIP" )
|
||||
if ( kw.name() == keywordName )
|
||||
{
|
||||
skipIndices.push_back( it );
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ public:
|
||||
bool replaceAllKeywords( const std::string& keywordName, const std::vector<Opm::DeckKeyword>& keywords );
|
||||
bool replaceKeywordAtIndex( const Opm::FileDeck::Index& index, const Opm::DeckKeyword& keyword );
|
||||
|
||||
void removeSkipKeywords();
|
||||
void removeKeywords( const std::string& keywordName );
|
||||
|
||||
private:
|
||||
void splitDatesIfNecessary();
|
||||
|
||||
Reference in new issue
Block a user