From 1662398b84ce3cb6dcf5625e783cf2783ff48d55 Mon Sep 17 00:00:00 2001 From: Dan Riley Date: Fri, 11 Nov 2022 10:19:25 -0500 Subject: [PATCH] fix initialization of local variables to avoid vagrind warnings --- RecoTracker/MkFitCore/src/PropagationMPlex.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RecoTracker/MkFitCore/src/PropagationMPlex.cc b/RecoTracker/MkFitCore/src/PropagationMPlex.cc index b5c73f04e5416..5b6760c11427d 100644 --- a/RecoTracker/MkFitCore/src/PropagationMPlex.cc +++ b/RecoTracker/MkFitCore/src/PropagationMPlex.cc @@ -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 { @@ -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 {