Skip to content
Snippets Groups Projects
Commit a65fa0fe authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Renaming of CollectiveCommunication into Communication

parent 1f8c2842
No related branches found
No related tags found
1 merge request!25Renaming of CollectiveCommunication into Communication
Pipeline #9402 failed
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include <type_traits> #include <type_traits>
#include <dune/common/referencehelper.hh> #include <dune/common/referencehelper.hh>
#include <dune/common/std/type_traits.hh>
#include <dune/curvedgrid/capabilities.hh> #include <dune/curvedgrid/capabilities.hh>
#include <dune/curvedgrid/entity.hh> #include <dune/curvedgrid/entity.hh>
#include <dune/curvedgrid/entityseed.hh> #include <dune/curvedgrid/entityseed.hh>
...@@ -118,7 +119,15 @@ struct GridFamily ...@@ -118,7 +119,15 @@ struct GridFamily
using GlobalIdSet = Curved::IdSet<const Grid, typename HostGrid::Traits::GlobalIdSet>; using GlobalIdSet = Curved::IdSet<const Grid, typename HostGrid::Traits::GlobalIdSet>;
using LocalIdSet = Curved::IdSet<const Grid, typename HostGrid::Traits::LocalIdSet>; using LocalIdSet = Curved::IdSet<const Grid, typename HostGrid::Traits::LocalIdSet>;
using CollectiveCommunication = typename HostGrid::Traits::CollectiveCommunication; template <class T>
using CollectiveCommunication_t = typename T::CollectiveCommunication;
template <class T>
using Communication_t = typename T::Communication;
using CollectiveCommunication
= Dune::Std::detected_t<CollectiveCommunication_t, typename HostGrid::Traits>;
using Communication
= Dune::Std::detected_or_t<CollectiveCommunication, Communication_t, typename HostGrid::Traits>;
// grid views // grid views
using LeafGridView using LeafGridView
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include <utility> #include <utility>
#include <dune/common/referencehelper.hh> #include <dune/common/referencehelper.hh>
#include <dune/common/std/type_traits.hh>
#include <dune/curvedgrid/datahandle.hh> #include <dune/curvedgrid/datahandle.hh>
#include <dune/curvedgrid/declaration.hh> #include <dune/curvedgrid/declaration.hh>
#include <dune/curvedgrid/indexsets.hh> #include <dune/curvedgrid/indexsets.hh>
...@@ -50,7 +51,15 @@ public: ...@@ -50,7 +51,15 @@ public:
Curved::IntersectionIterator<const Grid, HostIntersectionIterator>, Curved::IntersectionIterator<const Grid, HostIntersectionIterator>,
Curved::Intersection<const Grid, HostIntersection>>; Curved::Intersection<const Grid, HostIntersection>>;
using CollectiveCommunication = typename HostGridView::CollectiveCommunication; template <class T>
using CollectiveCommunication_t = typename T::CollectiveCommunication;
template <class T>
using Communication_t = typename T::Communication;
using CollectiveCommunication
= Dune::Std::detected_t<CollectiveCommunication_t, HostGridView>;
using Communication
= Dune::Std::detected_or_t<CollectiveCommunication, Communication_t, HostGridView>;
template <int codim> template <int codim>
struct Codim struct Codim
......
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