diff --git a/libsrc/meshing/clusters.cpp b/libsrc/meshing/clusters.cpp index 8e21df59..a8dc0df9 100644 --- a/libsrc/meshing/clusters.cpp +++ b/libsrc/meshing/clusters.cpp @@ -223,8 +223,9 @@ namespace netgen cluster_reps.Elem(kk) = cluster_reps.Get(jj); changed = 1; */ + int rep = cluster_reps.Get(jj); - int next = kk; + int next = cluster_reps.Get(kk); do { int cur = next;