bugfix for copying svector data with hybrid pair styles

This commit is contained in:
Axel Kohlmeyer 2019-09-05 12:11:32 -04:00
parent 0b34db7881
commit cffe43c96c
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 2 additions and 2 deletions

View File

@ -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];
}
}