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

This commit is contained in:
sjplimp 2012-05-17 17:10:36 +00:00
parent 09740d261b
commit 84a7941c3e
1 changed files with 4 additions and 2 deletions

View File

@ -711,7 +711,8 @@ void FixRigid::init()
for (i = 0; i < nlocal; i++) {
if (body[i] < 0) continue;
ibody = body[i];
massone = rmass[i];
if (rmass) massone = rmass[i];
else massone = mass[type[i]];
if (eflags[i] & SPHERE) {
sum[ibody][0] += SINERTIA*massone * radius[i]*radius[i];
@ -908,7 +909,8 @@ void FixRigid::init()
for (i = 0; i < nlocal; i++) {
if (body[i] < 0) continue;
ibody = body[i];
massone = rmass[i];
if (rmass) massone = rmass[i];
else massone = mass[type[i]];
if (eflags[i] & SPHERE) {
sum[ibody][0] += SINERTIA*massone * radius[i]*radius[i];