bugfix for copying svector data with hybrid pair styles
This commit is contained in:
@ -776,8 +776,8 @@ double PairHybrid::single(int i, int j, int itype, int jtype,
|
|||||||
// copy substyle extra values into hybrid's svector
|
// copy substyle extra values into hybrid's svector
|
||||||
|
|
||||||
if (single_extra && styles[map[itype][jtype][m]]->single_extra)
|
if (single_extra && styles[map[itype][jtype][m]]->single_extra)
|
||||||
for (m = 0; m < single_extra; m++)
|
for (int n = 0; n < single_extra; n++)
|
||||||
svector[m] = styles[map[itype][jtype][m]]->svector[m];
|
svector[n] = styles[map[itype][jtype][m]]->svector[n];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user