Should be nall not nghost

This commit is contained in:
Stan Gerald Moore
2022-04-04 12:08:38 -06:00
parent b4fc86e467
commit f42635a40d
5 changed files with 18 additions and 16 deletions

View File

@ -624,7 +624,7 @@ void FixACKS2ReaxFF::sparse_matvec_acks2(sparse_matrix *H, sparse_matrix *X, dou
}
}
for (i = atom->nlocal; i < atom->nghost; ++i) {
for (i = atom->nlocal; i < NN; ++i) {
if (atom->mask[i] & groupbit) {
b[i] = 0;
b[NN + i] = 0;