From cffe43c96ce23bf119a2cf1e8f8b4cbb768c8d49 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 5 Sep 2019 12:11:32 -0400 Subject: [PATCH] bugfix for copying svector data with hybrid pair styles --- src/pair_hybrid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pair_hybrid.cpp b/src/pair_hybrid.cpp index 762b9fe8fc..6402cf7fdc 100644 --- a/src/pair_hybrid.cpp +++ b/src/pair_hybrid.cpp @@ -776,8 +776,8 @@ double PairHybrid::single(int i, int j, int itype, int jtype, // copy substyle extra values into hybrid's svector if (single_extra && styles[map[itype][jtype][m]]->single_extra) - for (m = 0; m < single_extra; m++) - svector[m] = styles[map[itype][jtype][m]]->svector[m]; + for (int n = 0; n < single_extra; n++) + svector[n] = styles[map[itype][jtype][m]]->svector[n]; } }