diff --git a/src/neighbor.cpp b/src/neighbor.cpp index 9d6b93819a71707ef8c0bbc798b409d48a6b291d..686099eceb62e2f359b466cbf1b09345aef30a94 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;