aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetInterp2/src/fasterp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetInterp2/src/fasterp.cc')
-rw-r--r--Carpet/CarpetInterp2/src/fasterp.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/Carpet/CarpetInterp2/src/fasterp.cc b/Carpet/CarpetInterp2/src/fasterp.cc
index 249676636..084e3651d 100644
--- a/Carpet/CarpetInterp2/src/fasterp.cc
+++ b/Carpet/CarpetInterp2/src/fasterp.cc
@@ -709,8 +709,9 @@ namespace CarpetInterp2 {
// Find source processor
int const p = Carpet::vhh.AT(m)->processor(rl,c);
proc.AT(n) = p;
+ int& nlocs_p = nlocs.AT(p);
#pragma omp atomic
- ++ nlocs.AT(p);
+ ++ nlocs_p;
// Output
if (veryverbose) {