Skip to content

Commit

Permalink
Merge pull request #40105 from dan131riley/PropagationMPlex-valgrind-…
Browse files Browse the repository at this point in the history
…fixes

fix initialization of local variables to avoid vagrind warnings
  • Loading branch information
cmsbuild committed Nov 19, 2022
2 parents 32740b5 + 1662398 commit 3f2a385
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions RecoTracker/MkFitCore/src/PropagationMPlex.cc
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 3f2a385

Please sign in to comment.