changed: move ebos/eclmpiserializer.hh to opm/simulators/utils/MPISerializer.hpp

it does not use the typetag system
This commit is contained in:
Arne Morten Kvarving
2024-01-23 10:51:32 +01:00
parent 7c37470bd8
commit 98c704c1c3
10 changed files with 24 additions and 23 deletions

View File

@@ -143,14 +143,14 @@
#include <opm/input/eclipse/EclipseState/Tables/TableSchema.hpp>
#include <opm/output/data/Aquifer.hpp>
#include <opm/output/eclipse/RestartValue.hpp>
#include <ebos/eclmpiserializer.hh>
#include <opm/simulators/utils/MPISerializer.hpp>
template<class T>
std::tuple<T,int,int> PackUnpack(T& in)
{
const auto& comm = Dune::MPIHelper::getCommunication();
Opm::EclMpiSerializer ser(comm);
Opm::Parallel::MpiSerializer ser(comm);
ser.pack(in);
const size_t pos1 = ser.position();
T out;

View File

@@ -26,7 +26,7 @@
#include <boost/test/unit_test.hpp>
#include <opm/simulators/utils/MPIPacker.hpp>
#include <ebos/eclmpiserializer.hh>
#include <opm/simulators/utils/MPISerializer.hpp>
#include <dune/common/parallel/mpihelper.hh>
#include <numeric>
@@ -71,7 +71,7 @@ BOOST_AUTO_TEST_CASE(BroadCast)
double d1 = cc.rank() == 1 ? 7.0 : 0.0;
size_t i1 = cc.rank() == 1 ? 8 : 0;
Opm::EclMpiSerializer ser(cc);
Opm::Parallel::MpiSerializer ser(cc);
ser.broadcast(1, d, i, d1, i1);
for (size_t c = 0; c < 3; ++c) {