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

This commit is contained in:
sjplimp 2010-05-06 17:49:46 +00:00
parent 782e51d089
commit ffc9cfa2ea
1 changed files with 3 additions and 3 deletions

View File

@ -194,7 +194,7 @@ void FixEvaporate::pre_exchange()
// atomic deletions
// choose atoms randomly across all procs and mark them for deletion
// shrink list of eligible candidates as my atoms get marked
// shrink eligible list as my atoms get marked
if (molflag == 0) {
for (i = 0; i < nwhack; i++) {
@ -235,7 +235,7 @@ void FixEvaporate::pre_exchange()
// bcast mol ID to delete all atoms from
// only delete original iatom if mol ID = 0
MPI_Allreduce(&me,&proc,1,MPI_INT,MPI_SUM,world);
MPI_Allreduce(&me,&proc,1,MPI_INT,MPI_MAX,world);
MPI_Bcast(&imolecule,1,MPI_INT,proc,world);
ndelone = 0;
for (i = 0; i < nlocal; i++) {
@ -253,7 +253,7 @@ void FixEvaporate::pre_exchange()
i = 0;
while (i < ncount) {
if (mark[list[i]]) {
list[i] = list[ncount];
list[i] = list[ncount-1];
ncount--;
} else i++;
}