Skip to content

Commit

Permalink
fix initialization of local variables to avoid vagrind warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Riley authored and Dan Riley committed Nov 11, 2022
1 parent 18de8e7 commit 1662398
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions RecoTracker/MkFitCore/src/PropagationMPlex.cc
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,8 @@ namespace mkfit {
MPlexQF hitsXi;
MPlexQF propSign;
#pragma omp simd
for (int n = 0; n < N_proc; ++n) {
if (failFlag(n, 0, 0) || (noMatEffPtr && noMatEffPtr->constAt(n, 0, 0))) {
for (int n = 0; n < NN; ++n) {
if (n >= N_proc || (failFlag(n, 0, 0) || (noMatEffPtr && noMatEffPtr->constAt(n, 0, 0)))) {
hitsRl(n, 0, 0) = 0.f;
hitsXi(n, 0, 0) = 0.f;
} else {
Expand Down Expand Up @@ -637,8 +637,8 @@ namespace mkfit {
MPlexQF hitsXi;
MPlexQF propSign;
#pragma omp simd
for (int n = 0; n < N_proc; ++n) {
if (noMatEffPtr && noMatEffPtr->constAt(n, 0, 0)) {
for (int n = 0; n < NN; ++n) {
if (n >= N_proc || (noMatEffPtr && noMatEffPtr->constAt(n, 0, 0))) {
hitsRl(n, 0, 0) = 0.f;
hitsXi(n, 0, 0) = 0.f;
} else {
Expand Down

0 comments on commit 1662398

Please sign in to comment.