Skip to content

Commit

Permalink
update MANIFOLD_PAR guard
Browse files Browse the repository at this point in the history
  • Loading branch information
pca006132 committed Oct 9, 2024
1 parent 7c9ac18 commit 027c0e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/collider.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <intrin.h>
#endif

#ifdef MANIFOLD_PAR
#if (MANIFOLD_PAR == 1)
#include <tbb/combinable.h>
#endif

Expand Down Expand Up @@ -217,7 +217,7 @@ struct SeqCollisionRecorder {
SparseIndices& local() { return queryTri_; }
};

#ifdef MANIFOLD_PAR
#if (MANIFOLD_PAR == 1)
template <const bool inverted>
struct ParCollisionRecorder {
tbb::combinable<SparseIndices>& store;
Expand Down Expand Up @@ -327,7 +327,7 @@ class Collider {
SparseIndices& queryTri) const {
ZoneScoped;
using collider_internal::FindCollision;
#ifdef MANIFOLD_PAR
#if (MANIFOLD_PAR == 1)
if (queriesIn.size() > collider_internal::kSequentialThreshold) {
tbb::combinable<SparseIndices> store;
for_each_n(
Expand Down

0 comments on commit 027c0e0

Please sign in to comment.