mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Get rid deprecation warning for newer DUNE versions.
This commit is contained in:
@@ -130,7 +130,12 @@
|
||||
template<class T>
|
||||
std::tuple<T,int,int> PackUnpack(T& in)
|
||||
{
|
||||
auto comm = Dune::MPIHelper::getCollectiveCommunication();
|
||||
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 7)
|
||||
const auto& comm = Dune::MPIHelper::getCommunication();
|
||||
#else
|
||||
const auto& comm = Dune::MPIHelper::getCollectiveCommunication();
|
||||
#endif
|
||||
|
||||
Opm::EclMpiSerializer ser(comm);
|
||||
ser.pack(in);
|
||||
size_t pos1 = ser.position();
|
||||
|
||||
Reference in New Issue
Block a user