Store Value::Shut == -1000 for shut wells in IWEL

This commit is contained in:
Joakim Hove 2020-10-07 18:36:23 +02:00
parent 956dce6be6
commit f02ecb472f
2 changed files with 3 additions and 3 deletions

View File

@ -353,7 +353,7 @@ namespace {
? 0 : -1;
iWell[Ix::Status] = any_flowing_conn
? Value::Stop : -1;
? Value::Stop : Value::Shut;
}
@ -381,7 +381,7 @@ namespace {
? iWell[Ix::ActWCtrl] : -1;
iWell[Ix::Status] = any_flowing_conn
? Value::Open : -1;
? Value::Open : Value::Shut;
}
} // IWell

View File

@ -833,7 +833,7 @@ BOOST_AUTO_TEST_CASE (Dynamic_Well_Data_Step1)
// This needs to be corrected in flow
BOOST_CHECK_EQUAL(iwell[i1 + Ix::item9 ], -1); // No flowing conns.
BOOST_CHECK_EQUAL(iwell[i1 + Ix::Status], -1); // No flowing conns.
BOOST_CHECK_EQUAL(iwell[i1 + Ix::Status], Value::Shut); // No flowing conns.
}
// XWEL (OP_1)