From 9c29bb4224e350bf1e831d71cafbcf60cc571c4e Mon Sep 17 00:00:00 2001 From: pscrozi Date: Fri, 3 May 2013 22:53:32 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9805 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/MC/fix_gcmc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MC/fix_gcmc.cpp b/src/MC/fix_gcmc.cpp index 7165ecd8b1..730800e67c 100644 --- a/src/MC/fix_gcmc.cpp +++ b/src/MC/fix_gcmc.cpp @@ -1015,7 +1015,7 @@ void FixGCMC::get_model_molecule() } natoms_per_molecule = 0; - MPI_Allreduce(&natoms_per_molecule_local,&natoms_per_molecule,1,MPI_INT,MPI_MAX,world); + MPI_Allreduce(&natoms_per_molecule_local,&natoms_per_molecule,1,MPI_INT,MPI_SUM,world); if (natoms_per_molecule == 0) error->all(FLERR,"Fix gcmc could not find any atoms in the user-supplied template molecule");