Will translate STOP -> SHUT for completions.
This commit is contained in:
@@ -91,6 +91,8 @@ namespace Opm {
|
||||
return OPEN;
|
||||
else if (stringValue == "SHUT")
|
||||
return SHUT;
|
||||
else if (stringValue == "STOP")
|
||||
return SHUT;
|
||||
else if (stringValue == "AUTO")
|
||||
return AUTO;
|
||||
else
|
||||
|
||||
@@ -36,6 +36,7 @@ BOOST_AUTO_TEST_CASE(TestCompletionStateEnumFromString) {
|
||||
BOOST_CHECK_THROW( WellCompletion::StateEnumFromString("XXX") , std::invalid_argument );
|
||||
BOOST_CHECK_EQUAL( WellCompletion::AUTO , WellCompletion::StateEnumFromString("AUTO"));
|
||||
BOOST_CHECK_EQUAL( WellCompletion::SHUT , WellCompletion::StateEnumFromString("SHUT"));
|
||||
BOOST_CHECK_EQUAL( WellCompletion::SHUT , WellCompletion::StateEnumFromString("STOP"));
|
||||
BOOST_CHECK_EQUAL( WellCompletion::OPEN , WellCompletion::StateEnumFromString("OPEN"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user