From 716d8c76143d29d16bcd53b93b1cb7c4e0faf43e Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt <Ansgar.Burchardt@tu-dresden.de> Date: Mon, 3 Apr 2017 16:36:07 +0200 Subject: [PATCH] [uggrid] loadBalance: transfer element data --- dune/grid/uggrid.hh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dune/grid/uggrid.hh b/dune/grid/uggrid.hh index 67a414f93e..1cb82ab7e9 100644 --- a/dune/grid/uggrid.hh +++ b/dune/grid/uggrid.hh @@ -487,7 +487,8 @@ namespace Dune { { #ifdef ModelP // gather element data - // UGLBGatherScatter::template gather<0>(this->leafGridView(), dataHandle); + if (dataHandle.contains(dim, 0)) + UGLBGatherScatter::template gather<0>(this->leafGridView(), dataHandle); // gather node data if (dataHandle.contains(dim,dim)) @@ -500,7 +501,8 @@ namespace Dune { #ifdef ModelP // scatter element data - // UGLBGatherScatter::template scatter<0>(this->leafGridView(), dataHandle); + if (dataHandle.contains(dim, 0)) + UGLBGatherScatter::template scatter<0>(this->leafGridView(), dataHandle); // scatter node data if (dataHandle.contains(dim,dim)) -- GitLab