Skip to content

Commit

Permalink
Merge pull request #743 from pshriwise/overlap_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gonuke authored Jun 20, 2021
2 parents 3401ad9 + 19796eb commit 1a97a9a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions news/PR-0743.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
**Added:** None

**Changed:**

- Threadsafe fix for the overlap check test.

**Deprecated:** None

**Removed:** None

**Fixed:** None

**Security:** None
2 changes: 2 additions & 0 deletions src/overlap_check/overlap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ ErrorCode check_location_for_overlap(std::shared_ptr<GeomQueryTool>& GQT,
}

if (vols_found.size() > 1) {
#pragma omp critical
overlap_map[vols_found] = loc;
}

Expand All @@ -51,6 +52,7 @@ ErrorCode check_location_for_overlap(std::shared_ptr<GeomQueryTool>& GQT,
}

if (vols_found.size() > 1) {
#pragma omp critical
overlap_map[vols_found] = loc;
}

Expand Down

0 comments on commit 1a97a9a

Please sign in to comment.