forked from lijiext/lammps
must advance buffer while package bonus items, but only when a buffer is given
This commit is contained in:
parent
b33974cd19
commit
bc3860b462
|
@ -596,7 +596,9 @@ int AtomVecBody::pack_data_bonus(double *buf, int /*flag*/)
|
|||
int m = 0;
|
||||
for (i = 0; i < nlocal; i++) {
|
||||
if (body[i] < 0) continue;
|
||||
m += bptr->pack_data_body(tag[i],body[i],buf);
|
||||
int n = bptr->pack_data_body(tag[i],body[i],buf);
|
||||
m += n;
|
||||
if (buf) buf += n;
|
||||
}
|
||||
|
||||
return m;
|
||||
|
|
Loading…
Reference in New Issue