git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8398 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -576,7 +576,7 @@ int AtomVecElectron::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++] = q[i];
|
||||
buf[m++] = spin[i];
|
||||
buf[m++] = eradius[i];
|
||||
@ -607,7 +607,7 @@ int AtomVecElectron::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++]);
|
||||
q[nlocal] = buf[m++];
|
||||
spin[nlocal] = static_cast<int> (buf[m++]);
|
||||
eradius[nlocal] = buf[m++];
|
||||
@ -657,7 +657,7 @@ int AtomVecElectron::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];
|
||||
@ -695,7 +695,7 @@ int AtomVecElectron::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