fixed: use getCommuncation instead of getCollectiveCommuncation

latter causes a deprecation warning
This commit is contained in:
Arne Morten Kvarving 2024-05-16 09:10:33 +02:00
parent 2ea6cea895
commit 2cc2c89b5d

View File

@ -66,7 +66,7 @@ bool operator==(const Opm::ConvergenceReport::WellFailure& wf1,
BOOST_AUTO_TEST_CASE(AllHaveFailure) BOOST_AUTO_TEST_CASE(AllHaveFailure)
{ {
auto cc = Dune::MPIHelper::getCollectiveCommunication(); auto cc = Dune::MPIHelper::getCommunication();
std::ostringstream name; std::ostringstream name;
name << "WellRank" << cc.rank() << std::flush; name << "WellRank" << cc.rank() << std::flush;
using CR = Opm::ConvergenceReport; using CR = Opm::ConvergenceReport;
@ -85,7 +85,7 @@ BOOST_AUTO_TEST_CASE(AllHaveFailure)
BOOST_AUTO_TEST_CASE(EvenHaveFailure) BOOST_AUTO_TEST_CASE(EvenHaveFailure)
{ {
auto cc = Dune::MPIHelper::getCollectiveCommunication(); auto cc = Dune::MPIHelper::getCommunication();
using CR = Opm::ConvergenceReport; using CR = Opm::ConvergenceReport;
CR cr; CR cr;
if (cc.rank() % 2 == 0) { if (cc.rank() % 2 == 0) {