git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9805 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
pscrozi 2013-05-03 22:53:32 +00:00
parent 460d44523b
commit 9c29bb4224
1 changed files with 1 additions and 1 deletions

View File

@ -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");