add mpi serialization for Equil

This commit is contained in:
Arne Morten Kvarving
2019-11-29 13:16:00 +01:00
parent 21eab1aa6d
commit f989b004e0
3 changed files with 32 additions and 0 deletions

View File

@@ -411,6 +411,17 @@ BOOST_AUTO_TEST_CASE(EquilRecord)
}
BOOST_AUTO_TEST_CASE(Equil)
{
#if HAVE_MPI
Opm::Equil val1({getEquilRecord(), getEquilRecord()});
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;