Use WellType when serializing and constructing Well

This commit is contained in:
Joakim Hove
2020-03-03 17:43:58 +01:00
parent 69871fdefd
commit 3ab0e570c7
2 changed files with 11 additions and 14 deletions

View File

@@ -323,9 +323,9 @@ Opm::Well getFullWell()
{
Opm::UnitSystem unitSystem;
return Opm::Well("test1", "test2", 1, 2, 3, 4, 5.0,
Opm::Phase::WATER, Opm::Connection::Order::DEPTH,
Opm::WellType(Opm::Phase::WATER), Opm::Connection::Order::DEPTH,
unitSystem, 6.0, Opm::Well::Status::SHUT,
7.0, true, true, false,
7.0, true, false,
Opm::Well::WellGuideRate{true, 1.0, Opm::Well::GuideRateTarget::COMB, 2.0},
8.0, 9.0, false,
std::make_shared<Opm::WellEconProductionLimits>(),
@@ -2300,7 +2300,7 @@ BOOST_AUTO_TEST_CASE(Fault)
BOOST_AUTO_TEST_CASE(WellType)
{
#ifdef HAVE_MPI
Opm::WellType val1(true, Phase::OIL);
Opm::WellType val1(true, Opm::Phase::OIL);
auto val2 = PackUnpack(val1);
DO_CHECKS(WellType)
#endif