add mpi serialization for SummaryConfig

This commit is contained in:
Arne Morten Kvarving
2020-01-06 15:27:37 +01:00
parent b596ac6e6e
commit fa5f026fe4
3 changed files with 50 additions and 0 deletions

View File

@@ -2358,6 +2358,24 @@ BOOST_AUTO_TEST_CASE(SummaryNode)
}
BOOST_AUTO_TEST_CASE(SummaryConfig)
{
#ifdef HAVE_MPI
auto node = Opm::SummaryNode{"test1", Opm::SummaryNode::Category::Region,
Opm::Location{"test2", 1}}
.parameterType(Opm::SummaryNode::Type::Pressure)
.namedEntity("test3")
.number(2)
.isUserDefined(true);
Opm::SummaryConfig val1({node}, {"test1", "test2"}, {"test3", "test4"});
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;