diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2011-04-15 21:54:37 -0400 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 18:26:05 +0000 |
commit | aae72a0f9c3249a5b3bc734cb7b22a1a4f85b893 (patch) | |
tree | 853221fca7cc67df62a368725b66abcc4f6b62f0 /Carpet/CarpetInterp2 | |
parent | 4d2ed46a6fe555937be7d2d8a55a5466f48e3b7b (diff) |
CarpetInterp2: Simplify atomic expression
Diffstat (limited to 'Carpet/CarpetInterp2')
-rw-r--r-- | Carpet/CarpetInterp2/src/fasterp.cc | 3 |
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) { |