From 75a00f4d11a538d99509fd71326a51c1bb3dc94b Mon Sep 17 00:00:00 2001 From: Stan Gerald Moore Date: Tue, 25 Jan 2022 08:52:53 -0700 Subject: [PATCH] minor cleanup --- src/dump.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/dump.cpp b/src/dump.cpp index 732f4a73ef..181a56ff46 100644 --- a/src/dump.cpp +++ b/src/dump.cpp @@ -936,12 +936,11 @@ void Dump::balance() // reset buf size to largest of any post-balance nme values // this insures proc 0 can receive everyone's info + // cannot shrink buf to nme_balance, must use previous maxbuf value int nmax; MPI_Allreduce(&nme_balance,&nmax,1,MPI_INT,MPI_MAX,world); - if (nmax > maxbuf) { - maxbuf = nmax; - } + if (nmax > maxbuf) maxbuf = nmax; // allocate a second buffer for balanced data