minor cleanup
This commit is contained in:
@ -936,12 +936,11 @@ void Dump::balance()
|
|||||||
|
|
||||||
// reset buf size to largest of any post-balance nme values
|
// reset buf size to largest of any post-balance nme values
|
||||||
// this insures proc 0 can receive everyone's info
|
// this insures proc 0 can receive everyone's info
|
||||||
|
// cannot shrink buf to nme_balance, must use previous maxbuf value
|
||||||
|
|
||||||
int nmax;
|
int nmax;
|
||||||
MPI_Allreduce(&nme_balance,&nmax,1,MPI_INT,MPI_MAX,world);
|
MPI_Allreduce(&nme_balance,&nmax,1,MPI_INT,MPI_MAX,world);
|
||||||
if (nmax > maxbuf) {
|
if (nmax > maxbuf) maxbuf = nmax;
|
||||||
maxbuf = nmax;
|
|
||||||
}
|
|
||||||
|
|
||||||
// allocate a second buffer for balanced data
|
// allocate a second buffer for balanced data
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user