mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
add mpi serialization for SummaryConfig
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user