From e02002f46c8c5593d0138e7819e178ae0430ee11 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Fri, 18 Dec 2009 18:42:09 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3580 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/compute_property_local.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compute_property_local.cpp b/src/compute_property_local.cpp index 76daabf825..7b99a2b44e 100644 --- a/src/compute_property_local.cpp +++ b/src/compute_property_local.cpp @@ -268,6 +268,8 @@ int ComputePropertyLocal::count_bonds(int flag) only count if 2nd atom is the one storing the angle all atoms in interaction must be in group all atoms in interaction must be known to proc + if angle is deleted (type = 0), do not count + if angle is turned off (type < 0), still count ------------------------------------------------------------------------- */ int ComputePropertyLocal::count_angles(int flag) @@ -292,6 +294,7 @@ int ComputePropertyLocal::count_angles(int flag) if (atom1 < 0 || !(mask[atom1] & groupbit)) continue; atom3 = atom->map(angle_atom3[atom2][i]); if (atom3 < 0 || !(mask[atom3] & groupbit)) continue; + if (angle_type[atom2][i] == 0) continue; if (flag) { indices[m][0] = atom2;