a few bug fixes for support for multi and triclinic in CommTiled

This commit is contained in:
Steve Plimpton
2020-08-05 15:44:02 -06:00
parent c2ed040529
commit 304d6876f4
2 changed files with 41 additions and 33 deletions

View File

@ -1096,8 +1096,9 @@ void AtomVec::unpack_border(int n, int first, double *buf)
m = 0;
last = first + n;
while (last > nmax) grow(0);
for (i = first; i < last; i++) {
if (i == nmax) grow(0);
x[i][0] = buf[m++];
x[i][1] = buf[m++];
x[i][2] = buf[m++];
@ -1165,8 +1166,9 @@ void AtomVec::unpack_border_vel(int n, int first, double *buf)
m = 0;
last = first + n;
while (last > nmax) grow(0);
for (i = first; i < last; i++) {
if (i == nmax) grow(0);
x[i][0] = buf[m++];
x[i][1] = buf[m++];
x[i][2] = buf[m++];