correctly skip over point particles and point dipoles when counting extendend particles in fix rigid/small

This commit is contained in:
Axel Kohlmeyer 2017-06-12 14:20:38 -04:00
parent 6b289b0794
commit 0c805d0b70
1 changed files with 1 additions and 1 deletions

View File

@ -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]++;
}
}