Browse Source

no parallel in debug

Alec Jacobson 4 years ago
parent
commit
bc3f4903e8
1 changed files with 7 additions and 1 deletions
  1. 7 1
      include/igl/decimate.cpp

+ 7 - 1
include/igl/decimate.cpp

@@ -185,7 +185,13 @@ IGL_INLINE bool igl::decimate(
       cost_and_placement(e,V,F,E,EMAP,EF,EI,cost,p);
       cost_and_placement(e,V,F,E,EMAP,EF,EI,cost,p);
       C.row(e) = p;
       C.row(e) = p;
       costs(e) = cost;
       costs(e) = cost;
-    },10000);
+    },
+#ifndef NDEBUG
+    SIZE_MAX
+#else
+    10000
+#endif
+    );
     for(int e = 0;e<E.rows();e++)
     for(int e = 0;e<E.rows();e++)
     {
     {
       Q.emplace(costs(e),e,0);
       Q.emplace(costs(e),e,0);