From cd165562569770015214004cf49b320c3fe423f7 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 22 Jan 2022 17:13:54 -0500 Subject: [PATCH] add missing break statements. @GenieTim this bug may have tainted your results. you would always get the energy value for any of the dx, dy, dz keywords --- src/compute_pair_local.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compute_pair_local.cpp b/src/compute_pair_local.cpp index ff9acdc4ef..b98f6eec33 100644 --- a/src/compute_pair_local.cpp +++ b/src/compute_pair_local.cpp @@ -277,10 +277,13 @@ int ComputePairLocal::compute_pairs(int flag) break; case DX: ptr[n] = delx*directionCorrection; + break; case DY: ptr[n] = dely*directionCorrection; + break; case DZ: ptr[n] = delz*directionCorrection; + break; case ENG: ptr[n] = eng; break;