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

This commit is contained in:
sjplimp 2012-02-01 16:45:22 +00:00
parent f884a7ec85
commit 832b55ae27
1 changed files with 3 additions and 1 deletions

View File

@ -637,7 +637,7 @@ int AtomVecDipole::size_restart()
int i;
int nlocal = atom->nlocal;
int n = 15 * nlocal;
int n = 16 * nlocal;
if (atom->nextra_restart)
for (int iextra = 0; iextra < atom->nextra_restart; iextra++)
@ -671,6 +671,7 @@ int AtomVecDipole::pack_restart(int i, double *buf)
buf[m++] = mu[i][0];
buf[m++] = mu[i][1];
buf[m++] = mu[i][2];
buf[m++] = mu[i][3];
if (atom->nextra_restart)
for (int iextra = 0; iextra < atom->nextra_restart; iextra++)
@ -709,6 +710,7 @@ int AtomVecDipole::unpack_restart(double *buf)
mu[nlocal][0] = buf[m++];
mu[nlocal][1] = buf[m++];
mu[nlocal][2] = buf[m++];
mu[nlocal][3] = buf[m++];
double **extra = atom->extra;
if (atom->nextra_store) {