Commit ca5c3312 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Fix deprecation warnings

parent 3df3c96b
......@@ -175,7 +175,7 @@ namespace AMDiS
{
Dune::Timer t;
mightCoarsen_ = hostGrid_->preAdapt();
Dune::MPIHelper::getCollectiveCommunication().max(&mightCoarsen_, 1);
Dune::MPIHelper::getCommunication().max(&mightCoarsen_, 1);
this->notify(event::preAdapt{mightCoarsen_});
info(2,"AdaptiveGrid::preAdapt needed {} seconds", t.elapsed());
return mightCoarsen_;
......@@ -186,7 +186,7 @@ namespace AMDiS
{
Dune::Timer t;
refined_ = hostGrid_->adapt();
Dune::MPIHelper::getCollectiveCommunication().max(&refined_, 1);
Dune::MPIHelper::getCommunication().max(&refined_, 1);
this->notify(event::adapt{mightCoarsen_ || refined_});
info(2,"AdaptiveGrid::adapt needed {} seconds", t.elapsed());
return refined_;
......
......@@ -386,7 +386,7 @@ markElements(AdaptInfo& adaptInfo)
// synchronize mark flag over processors
int markFlagValue = int(markFlag);
Dune::MPIHelper::getCollectiveCommunication().max(&markFlagValue, 1);
Dune::MPIHelper::getCommunication().max(&markFlagValue, 1);
markFlag = Flag(markFlagValue);
info(2, "markElements needed {} seconds", t.elapsed());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment