git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8398 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -438,7 +438,7 @@ int AtomVecAtomic::pack_exchange(int i, double *buf)
|
||||
buf[m++] = tag[i];
|
||||
buf[m++] = type[i];
|
||||
buf[m++] = mask[i];
|
||||
buf[m++] = image[i];
|
||||
*((tagint *) &buf[m++]) = image[i];
|
||||
|
||||
if (atom->nextra_grow)
|
||||
for (int iextra = 0; iextra < atom->nextra_grow; iextra++)
|
||||
@ -465,7 +465,7 @@ int AtomVecAtomic::unpack_exchange(double *buf)
|
||||
tag[nlocal] = static_cast<int> (buf[m++]);
|
||||
type[nlocal] = static_cast<int> (buf[m++]);
|
||||
mask[nlocal] = static_cast<int> (buf[m++]);
|
||||
image[nlocal] = static_cast<tagint> (buf[m++]);
|
||||
image[nlocal] = *((tagint *) &buf[m++]);
|
||||
|
||||
if (atom->nextra_grow)
|
||||
for (int iextra = 0; iextra < atom->nextra_grow; iextra++)
|
||||
@ -511,7 +511,7 @@ int AtomVecAtomic::pack_restart(int i, double *buf)
|
||||
buf[m++] = tag[i];
|
||||
buf[m++] = type[i];
|
||||
buf[m++] = mask[i];
|
||||
buf[m++] = image[i];
|
||||
*((tagint *) &buf[m++]) = image[i];
|
||||
buf[m++] = v[i][0];
|
||||
buf[m++] = v[i][1];
|
||||
buf[m++] = v[i][2];
|
||||
@ -544,7 +544,7 @@ int AtomVecAtomic::unpack_restart(double *buf)
|
||||
tag[nlocal] = static_cast<int> (buf[m++]);
|
||||
type[nlocal] = static_cast<int> (buf[m++]);
|
||||
mask[nlocal] = static_cast<int> (buf[m++]);
|
||||
image[nlocal] = static_cast<tagint> (buf[m++]);
|
||||
image[nlocal] = *((tagint *) &buf[m++]);
|
||||
v[nlocal][0] = buf[m++];
|
||||
v[nlocal][1] = buf[m++];
|
||||
v[nlocal][2] = buf[m++];
|
||||
|
||||
Reference in New Issue
Block a user