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

This commit is contained in:
sjplimp
2014-01-22 17:44:32 +00:00
parent 25613401a4
commit 127eb167c1
60 changed files with 421 additions and 375 deletions

View File

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