From 9cc7bea05d66151eec1faedba27939c0f81b3a1c Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 27 Feb 2019 16:07:51 -0500 Subject: [PATCH] bugfix for changes in #1340 --- src/atom.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/atom.cpp b/src/atom.cpp index a149268767..34ea253751 100644 --- a/src/atom.cpp +++ b/src/atom.cpp @@ -757,22 +757,22 @@ void Atom::bonus_check() if (body && (body[i] >=0)) ++local_bodies; } - MPI_Allreduce(&local_ellipsoids,&num_global,1,MPI_LMP_BIGINT,MPI_MIN,world); + MPI_Allreduce(&local_ellipsoids,&num_global,1,MPI_LMP_BIGINT,MPI_SUM,world); if (nellipsoids != num_global) error->all(FLERR,"Inconsistent 'ellipsoids' header value and number of " "atoms with enabled ellipsoid flags"); - MPI_Allreduce(&local_lines,&num_global,1,MPI_LMP_BIGINT,MPI_MIN,world); + MPI_Allreduce(&local_lines,&num_global,1,MPI_LMP_BIGINT,MPI_SUM,world); if (nlines != num_global) error->all(FLERR,"Inconsistent 'lines' header value and number of " "atoms with enabled line flags"); - MPI_Allreduce(&local_tris,&num_global,1,MPI_LMP_BIGINT,MPI_MIN,world); + MPI_Allreduce(&local_tris,&num_global,1,MPI_LMP_BIGINT,MPI_SUM,world); if (ntris != num_global) error->all(FLERR,"Inconsistent 'tris' header value and number of " "atoms with enabled tri flags"); - MPI_Allreduce(&local_bodies,&num_global,1,MPI_LMP_BIGINT,MPI_MIN,world); + MPI_Allreduce(&local_bodies,&num_global,1,MPI_LMP_BIGINT,MPI_SUM,world); if (nbodies != num_global) error->all(FLERR,"Inconsistent 'bodies' header value and number of " "atoms with enabled body flags");