add mpi serialization for SolventDensityTable

This commit is contained in:
Arne Morten Kvarving
2020-02-26 13:30:43 +01:00
parent c23dd11d6b
commit 92303531b9
3 changed files with 40 additions and 1 deletions

View File

@@ -1206,6 +1206,7 @@ BOOST_AUTO_TEST_CASE(TableManager)
Opm::WatdentTable({Opm::WATDENTRecord{1.0, 2.0, 3.0}}),
{{1.0, 2.0, {1.0, 2.0, 3.0}}},
{{{1.0, 2.0, 3.0}}},
{{{4.0, 5.0, 6.0}}},
{{1, Opm::PlymwinjTable({1.0}, {2.0}, 1, {{1.0}, {2.0}})}},
{{2, Opm::SkprwatTable({1.0}, {2.0}, 1, {{1.0}, {2.0}})}},
{{3, Opm::SkprpolyTable({1.0}, {2.0}, 1, {{1.0}, {2.0}}, 3.0)}},
@@ -2509,6 +2510,16 @@ BOOST_AUTO_TEST_CASE(EclEpsScalingPointsInfo)
}
BOOST_AUTO_TEST_CASE(SolventDensityTable)
{
#ifdef HAVE_MPI
Opm::SolventDensityTable val1({1.0, 2.0, 3.0});
auto val2 = PackUnpack(val1);
DO_CHECKS(SolventDensityTable)
#endif
}
bool init_unit_test_func()
{
return true;