forked from lijiext/lammps
correctly skip over point particles and point dipoles when counting extendend particles in fix rigid/small
This commit is contained in:
parent
6b289b0794
commit
0c805d0b70
|
@ -1031,7 +1031,7 @@ int FixRigidSmall::dof(int tgroup)
|
|||
j = atom2body[i];
|
||||
counts[j][2]++;
|
||||
if (mask[i] & tgroupbit) {
|
||||
if (extended && eflags[i]) counts[j][1]++;
|
||||
if (extended && (eflags[i] & ~(POINT | DIPOLE))) counts[j][1]++;
|
||||
else counts[j][0]++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue