From 4f16293071d24bbe8dbfa51c4409be207e1d4519 Mon Sep 17 00:00:00 2001
From: Ansgar Burchardt <Ansgar.Burchardt@tu-dresden.de>
Date: Mon, 30 Apr 2018 14:42:17 +0200
Subject: [PATCH] get `degree` from PPIFContext

---
 gm/ugm.cc                    | 1 +
 parallel/ddd/basic/notify.cc | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/gm/ugm.cc b/gm/ugm.cc
index f0ec5e807..dafb70090 100644
--- a/gm/ugm.cc
+++ b/gm/ugm.cc
@@ -8495,6 +8495,7 @@ static void CommNTpls(GRID *g, int *send_ntpls, int *recv_ntpls)
 
   const int me = g->ppifContext().me();
   const int procs = g->ppifContext().procs();
+  const auto& degree = g->ppifContext().degree();
 
   std::vector<int> gntpls(procs*procs, 0);
   std::vector<int> lntpls(procs*procs, 0);
diff --git a/parallel/ddd/basic/notify.cc b/parallel/ddd/basic/notify.cc
index 93bbb577c..26d9f8ad0 100644
--- a/parallel/ddd/basic/notify.cc
+++ b/parallel/ddd/basic/notify.cc
@@ -45,6 +45,7 @@
 #include "basic/notify.h"
 
 #include <dune/uggrid/parallel/ddd/dddcontext.hh>
+#include <dune/uggrid/parallel/ppif/ppifcontext.hh>
 
 USING_UG_NAMESPACES
 
@@ -195,6 +196,7 @@ int NotifyTwoWave(DDD::DDDContext& context, NOTIFY_INFO *allInfos, int lastInfo,
 {
   auto& ctx = context.notifyContext();
   const auto& me = context.me();
+  const auto& degree = context.ppifContext().degree();
 
   NOTIFY_INFO  *newInfos;
   int l, i, j, n, unknownInfos, myInfos;
-- 
GitLab