From 6a975382b23aaf110dc9a35f84d3e7ef54e879c4 Mon Sep 17 00:00:00 2001
From: Sebastian Reuther <sebastian.reuther@tu-dresden.de>
Date: Mon, 9 Nov 2015 13:47:00 +0000
Subject: [PATCH] fixed bug in synchVector methods of MeshDistributor.h
 (DofComm iterators were not initialized with the current finite element
 space)

---
 AMDiS/src/parallel/MeshDistributor.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/AMDiS/src/parallel/MeshDistributor.h b/AMDiS/src/parallel/MeshDistributor.h
index 9665e5ae..109e7f54 100644
--- a/AMDiS/src/parallel/MeshDistributor.h
+++ b/AMDiS/src/parallel/MeshDistributor.h
@@ -267,7 +267,7 @@ namespace AMDiS { namespace Parallel {
 	  stdMpi.send(it.getRank(), dofs);
 	}
 	
-	for (DofComm::Iterator it(dofComm[level].getSendDofs()); 
+	for (DofComm::Iterator it(dofComm[level].getSendDofs(), fe); 
 	     !it.end(); it.nextRank())
 	  stdMpi.recv(it.getRank());
 	
@@ -315,7 +315,7 @@ namespace AMDiS { namespace Parallel {
 	  stdMpi.send(it.getRank(), dofs);
 	}
 	
-	for (DofComm::Iterator it(dofComm[level].getRecvDofs()); 
+	for (DofComm::Iterator it(dofComm[level].getRecvDofs(), fe); 
 	     !it.end(); it.nextRank())
 	  stdMpi.recv(it.getRank());
 	
@@ -358,7 +358,7 @@ namespace AMDiS { namespace Parallel {
 	  stdMpi.send(it.getRank(), dofs);
 	}
 	
-	for (DofComm::Iterator it(dofComm[level].getSendDofs()); 
+	for (DofComm::Iterator it(dofComm[level].getSendDofs(), fe); 
 	     !it.end(); it.nextRank())
 	  stdMpi.recv(it.getRank());
 	
-- 
GitLab