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

This commit is contained in:
sjplimp
2014-05-02 14:29:05 +00:00
parent af5d91115f
commit a1c6c99ccc
3 changed files with 18 additions and 15 deletions

View File

@ -185,6 +185,9 @@ void FixEvaporate::pre_exchange()
// nbefore = # on procs before me
// list[ncount] = list of local indices of atoms I can delete
Region *region = domain->regions[iregion];
region->prematch();
double **x = atom->x;
int *mask = atom->mask;
tagint *tag = atom->tag;
@ -193,8 +196,7 @@ void FixEvaporate::pre_exchange()
int ncount = 0;
for (i = 0; i < nlocal; i++)
if (mask[i] & groupbit)
if (domain->regions[iregion]->match(x[i][0],x[i][1],x[i][2]))
list[ncount++] = i;
if (region->match(x[i][0],x[i][1],x[i][2])) list[ncount++] = i;
int nall,nbefore;
MPI_Allreduce(&ncount,&nall,1,MPI_INT,MPI_SUM,world);