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:
@@ -58,7 +58,11 @@ init_unit_test_func()
|
||||
|
||||
BOOST_AUTO_TEST_CASE(BroadCast)
|
||||
{
|
||||
auto cc = Dune::MPIHelper::getCollectiveCommunication();
|
||||
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 7)
|
||||
const auto& cc = Dune::MPIHelper::getCommunication();
|
||||
#else
|
||||
const auto& cc = Dune::MPIHelper::getCollectiveCommunication();
|
||||
#endif
|
||||
|
||||
std::vector<double> d(3);
|
||||
if (cc.rank() == 1)
|
||||
|
||||
Reference in New Issue
Block a user