From 0c805d0b70ed81b24cfcc340ccef18649d3ffdc6 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer <akohlmey@gmail.com> Date: Mon, 12 Jun 2017 14:20:38 -0400 Subject: [PATCH] correctly skip over point particles and point dipoles when counting extendend particles in fix rigid/small --- src/RIGID/fix_rigid_small.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RIGID/fix_rigid_small.cpp b/src/RIGID/fix_rigid_small.cpp index 07b6cc09b3..25e528e40b 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]++; } } -- GitLab