diff --git a/src/RIGID/fix_rigid_small.cpp b/src/RIGID/fix_rigid_small.cpp index 07b6cc09b306a4574eb1e4a65e853ab64d454b74..25e528e40ba8e6424c294b135d1d5350edca3d39 100644 --- a/src/RIGID/fix_rigid_small.cpp +++ b/src/RIGID/fix_rigid_small.cpp @@ -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]++; } }