Skip to content
Snippets Groups Projects
Commit bd49f0f8 authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Merge branch 'feature/use-communicator-interface' into 'master'

Use new interface for communication

See merge request !36
parents a5fd4901 fac777cc
No related branches found
No related tags found
1 merge request!36Use new interface for communication
Pipeline #54540 passed
......@@ -169,7 +169,11 @@ public:
typename HostGrid::Traits::LocalIdSet::IdType
>;
using CollectiveCommunication = typename HostGrid::CollectiveCommunication;
using CollectiveCommunication
[[deprecated("Use CommunicationType. Will be removed after release 2.9")]]
= typename HostGrid::CollectiveCommunication;
using Communication = typename HostGrid::Communication;
using LeafSubDomainInterfaceIterator = Dune::mdgrid::LeafSubDomainInterfaceIterator<const Grid>;
using LevelSubDomainInterfaceIterator = Dune::mdgrid::LevelSubDomainInterfaceIterator<const Grid>;
......@@ -766,7 +770,7 @@ public:
return _hostGrid.ghostSize(codim);
}
const typename Traits::CollectiveCommunication& comm() const {
const typename Traits::Communication& comm() const {
return _hostGrid.comm();
}
......
......@@ -189,7 +189,11 @@ public:
typename MDGrid::HostGrid::Traits::LocalIdSet::IdType
>;
using CollectiveCommunication = typename MDGrid::CollectiveCommunication;
using CollectiveCommunication
[[deprecated("Use Communication. Will be removed after release 2.9")]]
= typename MDGrid::CollectiveCommunication;
using Communication = typename MDGrid::Communication;
};
};
......@@ -551,7 +555,7 @@ public:
return _grid.ghostSize(codim);
}
const typename Traits::CollectiveCommunication& comm() const {
const typename Traits::Communication& comm() const {
return _grid.comm();
}
......
......@@ -45,7 +45,7 @@ public:
template<typename MessageBufferImp, typename Entity>
void gather(MessageBufferImp& buf, const Entity& e) const
{
buf.write(Dune::MPIHelper::getCollectiveCommunication().rank());
buf.write(Dune::MPIHelper::getCommunication().rank());
}
template<typename MessageBufferImp, typename Entity>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment