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

This commit is contained in:
sjplimp
2013-07-26 15:37:34 +00:00
parent 5e1c01f3bd
commit a019c5cb58

View File

@ -412,11 +412,8 @@ void ComputeBasalAtom::compute_peratom()
} }
} }
//if there are less than two ~180 degree bond angles, the algorithm returns null //if there are less than two ~180 degree bond angles, the algorithm returns null
else { else BPV[i][0] = BPV[i][1] = BPV[i][2] = 0.0;
BPV[i][0] = 0.0;
BPV[i][1] = 0.0;
BPV[i][2] = 0.0;
}
//normalize BPV: //normalize BPV:
double Mag = sqrt(BPV[i][0]*BPV[i][0] + double Mag = sqrt(BPV[i][0]*BPV[i][0] +
BPV[i][1]*BPV[i][1] + BPV[i][2]*BPV[i][2]); BPV[i][1]*BPV[i][1] + BPV[i][2]*BPV[i][2]);
@ -425,7 +422,7 @@ void ComputeBasalAtom::compute_peratom()
BPV[i][1] = BPV[i][1]/Mag; BPV[i][1] = BPV[i][1]/Mag;
BPV[i][2] = BPV[i][2]/Mag; BPV[i][2] = BPV[i][2]/Mag;
} }
} } else BPV[i][0] = BPV[i][1] = BPV[i][2] = 0.0;
} }
} }
/* ---------------------------------------------------------------------- /* ----------------------------------------------------------------------