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

This commit is contained in:
sjplimp 2015-04-30 17:33:34 +00:00
parent 8d99bf4779
commit 45b935ead3
1 changed files with 6 additions and 4 deletions

View File

@ -2658,6 +2658,12 @@ void FixRigidSmall::set_molecule(int nlocalprev, tagint tagprev, int imol,
double ctr2com[3],ctr2com_rotate[3];
double rotmat[3][3];
// increment total # of rigid bodies
nbody++;
// loop over atoms I added for the new body
int nlocal = atom->nlocal;
if (nlocalprev == nlocal) return;
@ -2715,10 +2721,6 @@ void FixRigidSmall::set_molecule(int nlocalprev, tagint tagprev, int imol,
nlocal_body++;
}
}
// increment total # of rigid bodies
nbody++;
}
/* ----------------------------------------------------------------------