mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
Sector Export: changes to handle model5 from opm-tests.
This commit is contained in:
1 parent
9f597c63f9
commit
c3286d9a7e
1 file changed
+11
@@ -364,6 +364,8 @@ std::expected<void, QString> RicExportEclipseSectorModelFeature::exportSimulatio
|
||||
// TODO: fix this..
|
||||
deckFile.removeKeywords( "MAPAXES" );
|
||||
|
||||
deckFile.removeKeywords( "SPECGRID" );
|
||||
|
||||
// Save the modified deck file to the export directory
|
||||
if ( !deckFile.saveDeck( outputFolder.toStdString(), outputFile.toStdString() ) )
|
||||
{
|
||||
@@ -413,6 +415,13 @@ std::expected<void, QString>
|
||||
std::vector<double> coords = convertToDoubleVector( coordArray );
|
||||
std::vector<double> zcorn = convertToDoubleVector( zcornArray );
|
||||
|
||||
auto keywords = deckFile.keywords( false );
|
||||
if ( std::find( keywords.begin(), keywords.end(), "ACTNUM" ) == keywords.end() )
|
||||
{
|
||||
Opm::DeckKeyword newKw( Opm::ParserKeyword( "ACTNUM" ) );
|
||||
deckFile.addKeyword( "GRID", newKw );
|
||||
}
|
||||
|
||||
if ( !deckFile.replaceKeywordData( "COORD", coords ) )
|
||||
{
|
||||
return std::unexpected( "Failed to replace COORD keyword in deck file" );
|
||||
@@ -1025,9 +1034,11 @@ std::expected<void, QString> RicExportEclipseSectorModelFeature::filterAndUpdate
|
||||
"COMPSEGS",
|
||||
"WCONHIST",
|
||||
"WCONINJH",
|
||||
"WCONINJE",
|
||||
"WCONPROD",
|
||||
"WELSEGS",
|
||||
"WELSPECS",
|
||||
"WELOPEN",
|
||||
"WELTARG",
|
||||
"WPAVEDEP",
|
||||
"WRFTPLT",
|
||||
|
||||
Reference in new issue
Block a user