add mpi serialization for Well::WellGuideRate

This commit is contained in:
Arne Morten Kvarving
2019-12-10 13:21:58 +01:00
parent c909075f16
commit 8bd9f2f68f
3 changed files with 13 additions and 0 deletions

View File

@@ -1417,6 +1417,17 @@ BOOST_AUTO_TEST_CASE(WellEconProductionLimits)
}
BOOST_AUTO_TEST_CASE(WellGuideRate)
{
#ifdef HAVE_MPI
Opm::Well::WellGuideRate val1{true, 1.0, Opm::Well::GuideRateTarget::COMB, 2.0};
auto val2 = PackUnpack(val1);
BOOST_CHECK(std::get<1>(val2) == std::get<2>(val2));
BOOST_CHECK(val1 == std::get<0>(val2));
#endif
}
bool init_unit_test_func()
{
return true;