forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8068 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
09740d261b
commit
84a7941c3e
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue