From a5efab930b0375c819484d8f9148b75e8942c5da Mon Sep 17 00:00:00 2001 From: sjplimp Date: Wed, 14 Sep 2011 21:42:57 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6969 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/fix_evaporate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fix_evaporate.cpp b/src/fix_evaporate.cpp index 49a19e7c8d..4e8c779561 100644 --- a/src/fix_evaporate.cpp +++ b/src/fix_evaporate.cpp @@ -232,7 +232,7 @@ void FixEvaporate::pre_exchange() // keep ndel,ndeltopo,ncount,nall,nbefore current after each mol deletion } else { - int me,proc,iatom,imolecule,ndelone,ndelall; + int me,proc,iatom,imolecule,ndelone; int *molecule = atom->molecule; ndeltopo[0] = ndeltopo[1] = ndeltopo[2] = ndeltopo[3] = 0; @@ -316,7 +316,7 @@ void FixEvaporate::pre_exchange() // update ndel,ncount,nall,nbefore - MPI_Allreduce(&ndelone,&ndelall,1,MPI_INT,MPI_SUM,world); + MPI_Allreduce(&ndelone,&ndel,1,MPI_INT,MPI_SUM,world); MPI_Allreduce(&ncount,&nall,1,MPI_INT,MPI_SUM,world); MPI_Scan(&ncount,&nbefore,1,MPI_INT,MPI_SUM,world); nbefore -= ncount;