From 8fb10eac20e8aaecb5b776f21b2fecfe20e33287 Mon Sep 17 00:00:00 2001 From: Josh Cardenzana Date: Thu, 29 Jun 2017 14:26:48 +0200 Subject: [PATCH] Add critical section for incrementing ctbin counts cube (#1970) --- src/ctbin/ctbin.cpp | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/src/ctbin/ctbin.cpp b/src/ctbin/ctbin.cpp index e396073..9f941f8 100644 --- a/src/ctbin/ctbin.cpp +++ b/src/ctbin/ctbin.cpp @@ -545,7 +545,9 @@ void ctbin::fill_cube(GCTAObservation* obs) } // Fill event in skymap + #pragma omp critical m_counts(pixel, iebin) += 1.0; + num_in_map++; } // endfor: looped over all events -- libgit2 0.21.4