git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11293 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -523,7 +523,7 @@ void FixDeposit::pre_exchange()
|
||||
void FixDeposit::find_maxid()
|
||||
{
|
||||
tagint *tag = atom->tag;
|
||||
int *molecule = atom->molecule;
|
||||
tagint *molecule = atom->molecule;
|
||||
int nlocal = atom->nlocal;
|
||||
|
||||
tagint max = 0;
|
||||
@ -533,7 +533,7 @@ void FixDeposit::find_maxid()
|
||||
if (mode == MOLECULE && molecule) {
|
||||
max = 0;
|
||||
for (int i = 0; i < nlocal; i++) max = MAX(max,molecule[i]);
|
||||
MPI_Allreduce(&max,&maxmol_all,1,MPI_INT,MPI_MAX,world);
|
||||
MPI_Allreduce(&max,&maxmol_all,1,MPI_LMP_TAGINT,MPI_MAX,world);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user