forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13448 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
8d99bf4779
commit
45b935ead3
|
@ -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++;
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue