From c6ab8408f724f0eaf446317c35e8b1e2ea4c2a64 Mon Sep 17 00:00:00 2001 From: Oliver Gloth Date: Thu, 7 Aug 2014 11:24:07 +0200 Subject: [PATCH] no edge type check if all edges are allowed --- src/libengrid/meshpartition.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libengrid/meshpartition.cpp b/src/libengrid/meshpartition.cpp index 1a2ed1b9..9f889a8c 100644 --- a/src/libengrid/meshpartition.cpp +++ b/src/libengrid/meshpartition.cpp @@ -504,7 +504,11 @@ int MeshPartition::computeTopoDistance(vtkIdType id_node1, vtkIdType id_node2, i for (int i = 0; i < n2nGSize(id_node); ++i) { vtkIdType id_neigh = n2nGG(id_node,i); if (!candidates.contains(id_neigh)) { - if (getEdgeType(id_node, id_neigh) >= restriction_type) { + bool insert = true; + if (restriction_type > 0) { + insert = getEdgeType(id_node, id_neigh) >= restriction_type; + } + if (insert) { candidates.insert(id_neigh); } } -- 2.11.4.GIT