From c22e2896486f295a64464543b51306b54a3bf1c1 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Wed, 5 Sep 2007 15:05:59 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@828 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/MOLECULE/dihedral_charmm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MOLECULE/dihedral_charmm.cpp b/src/MOLECULE/dihedral_charmm.cpp index 2876580b0e..415993645f 100644 --- a/src/MOLECULE/dihedral_charmm.cpp +++ b/src/MOLECULE/dihedral_charmm.cpp @@ -387,7 +387,7 @@ void DihedralCharmm::init_style() // set local ptrs to LJ 14 arrays setup by Pair int weightflag = 0; - for (int i = 1; i < atom->ndihedraltypes; i++) + for (int i = 1; i <= atom->ndihedraltypes; i++) if (weight[i] > 0.0) weightflag = 1; if (weightflag) {