Read keywords MULTIN and MULTOUT

This commit is contained in:
Joakim Hove
2019-02-04 09:55:40 +01:00
parent e9756c3ee5
commit 57d19c9cdb
4 changed files with 14 additions and 2 deletions

View File

@@ -126,8 +126,6 @@ namespace Opm {
const std::string& input_path ) :
m_write_INIT_file( grid.hasKeyword( "INIT" ) ),
m_write_EGRID_file( write_egrid_file( grid ) ),
m_UNIFIN( runspec.hasKeyword( "UNIFIN" ) ),
m_UNIFOUT( runspec.hasKeyword( "UNIFOUT" ) ),
m_FMTIN( runspec.hasKeyword( "FMTIN" ) ),
m_FMTOUT( runspec.hasKeyword( "FMTOUT" ) ),
m_deck_filename( input_path ),
@@ -135,6 +133,16 @@ namespace Opm {
m_nosim( nosim )
{
this->setBaseName(basename(input_path));
for (const auto& kw : runspec) {
if (kw.name() == "UNIFOUT")
this->m_UNIFOUT = true;
else if (kw.name() == "UNIFIN")
this->m_UNIFIN = true;
else if (kw.name() == "MULTOUT")
this->m_UNIFOUT = false;
else if (kw.name() == "MULTIN")
this->m_UNIFIN = false;
}
}

View File

@@ -0,0 +1 @@
{"name" : "MULTIN", "sections" : ["RUNSPEC"]}

View File

@@ -0,0 +1 @@
{"name" : "MULTOUT", "sections" : ["RUNSPEC"]}

View File

@@ -164,6 +164,8 @@ set( keywords
000_Eclipse100/M/MSFN
000_Eclipse100/M/MSGFILE
000_Eclipse100/M/MULTFLT
000_Eclipse100/M/MULTIN
000_Eclipse100/M/MULTOUT
000_Eclipse100/M/MULTIPLY
000_Eclipse100/M/MULTIREG
000_Eclipse100/M/MULTNUM