Readded r=0 check

This commit is contained in:
Aidan Thompson
2021-07-30 10:01:20 -06:00
parent 6d75912f7a
commit 162868f13c

View File

@ -269,7 +269,7 @@ void ComputeSNAGrid::compute_array()
int jelem = 0;
if (chemflag)
jelem = map[jtype];
if (rsq < cutsq[jtype][jtype]) {
if (rsq < cutsq[jtype][jtype] && rsq > 1e-20) {
snaptr->rij[ninside][0] = delx;
snaptr->rij[ninside][1] = dely;
snaptr->rij[ninside][2] = delz;