git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@828 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2007-09-05 15:05:59 +00:00
parent 7cce9361a5
commit c22e289648

View File

@ -387,7 +387,7 @@ void DihedralCharmm::init_style()
// set local ptrs to LJ 14 arrays setup by Pair // set local ptrs to LJ 14 arrays setup by Pair
int weightflag = 0; 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 (weight[i] > 0.0) weightflag = 1;
if (weightflag) { if (weightflag) {