From b69520a1e7406624d2d1fbdb7ce314c0d8c9d8fe Mon Sep 17 00:00:00 2001
From: Bernd Flemisch <bernd@iws.uni-stuttgart.de>
Date: Mon, 9 Apr 2018 13:41:29 +0200
Subject: [PATCH] [gridcreator] fix the methods fixedSize and size of the data
 handle

Only one marker per entity is communicated.
---
 dumux/io/gridcreator.hh | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/dumux/io/gridcreator.hh b/dumux/io/gridcreator.hh
index fe0982a169..b790df24f6 100644
--- a/dumux/io/gridcreator.hh
+++ b/dumux/io/gridcreator.hh
@@ -113,16 +113,11 @@ struct GridDataHandle : public Dune::CommDataHandleIF<GridDataHandle<GridPtr, Gr
     { return codim == 0 || codim == 1; }
 
     bool fixedSize (int dim, int codim) const
-    { return false; }
+    { return true; }
 
     template<class EntityType>
     size_t size (const EntityType& e) const
-    {
-        if (EntityType::codimension == 0)
-            return GridCreator::elementMarkers_.size();
-        else
-            return GridCreator::faceMarkers_.size();
-    }
+    { return 1; }
 
     template<class MessageBufferImp, class EntityType>
     void gather (MessageBufferImp& buff, const EntityType& e) const
-- 
GitLab