fix missing comparison and thus reduce memory use in serial case

This commit is contained in:
Axel Kohlmeyer
2020-09-02 11:12:15 -04:00
parent a4380a548d
commit 8468f4ab2e

View File

@ -238,7 +238,7 @@ void FixNEB::init()
if (atom->nmax > maxlocal) reallocate();
if (MULTI_PROC && counts == NULL) {
if ((cmode == MULTI_PROC) && (counts == NULL)) {
memory->create(xsendall,ntotal,3,"neb:xsendall");
memory->create(xrecvall,ntotal,3,"neb:xrecvall");
memory->create(fsendall,ntotal,3,"neb:fsendall");