mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changed: move ebos/eclmpiserializer.hh to opm/simulators/utils/MPISerializer.hpp
it does not use the typetag system
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user