From fbfb1df5eb11247404cca64596647ae3eb654383 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer <akohlmey@gmail.com> Date: Thu, 19 Jan 2017 20:47:10 -0500 Subject: [PATCH] fix typo causing wrong neighbor list copy selections --- src/neighbor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/neighbor.cpp b/src/neighbor.cpp index 9d6b93819a..686099eceb 100644 --- a/src/neighbor.cpp +++ b/src/neighbor.cpp @@ -724,7 +724,7 @@ void Neighbor::init_pair() // IJ newton = 1 for newton on, 2 for newton off inewton = requests[i]->newton; if (inewton == 0) inewton = force->newton_pair ? 1 : 2; - jnewton = requests[i]->newton; + jnewton = requests[j]->newton; if (jnewton == 0) jnewton = force->newton_pair ? 1 : 2; if (inewton != jnewton) continue; -- GitLab