add mpi serialization for MULTREGTRecord

This commit is contained in:
Arne Morten Kvarving committed 2020-01-21 14:35:11 +01:00
1 parent 02ce13c800
commit 252f323fb6
3 files changed
+48

No files matched your search

+11
View File
@@ -2415,6 +2415,17 @@ BOOST_AUTO_TEST_CASE(WellBrineProperties)
}
BOOST_AUTO_TEST_CASE(MULTREGTRecord)
{
#ifdef HAVE_MPI
Opm::MULTREGTRecord val1{1, 2, 3.0, 4, Opm::MULTREGT::ALL, "test"};
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;