git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8398 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -528,7 +528,7 @@ int AtomVecAngle::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];
|
||||
|
||||
buf[m++] = molecule[i];
|
||||
|
||||
@ -578,7 +578,7 @@ int AtomVecAngle::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++]);
|
||||
|
||||
molecule[nlocal] = static_cast<int> (buf[m++]);
|
||||
|
||||
@ -650,7 +650,7 @@ int AtomVecAngle::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];
|
||||
@ -701,7 +701,7 @@ int AtomVecAngle::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