From 8468f4ab2e3cfdfc513f5b44f0daff641a7042cd Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 2 Sep 2020 11:12:15 -0400 Subject: [PATCH] fix missing comparison and thus reduce memory use in serial case --- src/REPLICA/fix_neb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/REPLICA/fix_neb.cpp b/src/REPLICA/fix_neb.cpp index 93689eb7f9..3068305232 100644 --- a/src/REPLICA/fix_neb.cpp +++ b/src/REPLICA/fix_neb.cpp @@ -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");