only compute special neighbors of a template if it has bonds
This commit is contained in:
@ -173,7 +173,7 @@ void NPairNsq<HALF, NEWTON, TRI, SIZE>::build(NeighList *list)
|
||||
if (molecular != Atom::ATOMIC) {
|
||||
if (!moltemplate)
|
||||
which = find_special(special[i], nspecial[i], tag[j]);
|
||||
else if (imol >= 0)
|
||||
else if ((imol >= 0) && onemols[imol]->special)
|
||||
which = find_special(onemols[imol]->special[iatom], onemols[imol]->nspecial[iatom],
|
||||
tag[j] - tagprev);
|
||||
else
|
||||
@ -192,7 +192,7 @@ void NPairNsq<HALF, NEWTON, TRI, SIZE>::build(NeighList *list)
|
||||
if (molecular != Atom::ATOMIC) {
|
||||
if (!moltemplate)
|
||||
which = find_special(special[i], nspecial[i], tag[j]);
|
||||
else if (imol >= 0)
|
||||
else if ((imol >= 0) && onemols[imol]->special)
|
||||
which = find_special(onemols[imol]->special[iatom], onemols[imol]->nspecial[iatom],
|
||||
tag[j] - tagprev);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user