git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8398 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2012-06-25 23:31:14 +00:00
parent 83784f8381
commit dfb51e6b00
14 changed files with 751 additions and 750 deletions

View File

@ -1027,7 +1027,7 @@ int AtomVecTri::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];
buf[m++] = rmass[i];
@ -1087,7 +1087,7 @@ int AtomVecTri::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++]);
rmass[nlocal] = buf[m++];
@ -1171,7 +1171,7 @@ int AtomVecTri::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];
@ -1237,7 +1237,7 @@ int AtomVecTri::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++];