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

This commit is contained in:
sjplimp
2014-04-07 22:53:02 +00:00
parent 119c473498
commit 2292ba2c67
2 changed files with 6 additions and 6 deletions

View File

@ -290,8 +290,9 @@ int Atom::map_style_set()
error->all(FLERR,"Cannot create an atom map unless atoms have IDs");
// map_tag_max = max ID of any atom that will be in new map
// map_tag_max = -1 if no atoms
tagint max = 0;
tagint max = -1;
for (int i = 0; i < nlocal; i++) max = MAX(max,tag[i]);
MPI_Allreduce(&max,&map_tag_max,1,MPI_LMP_TAGINT,MPI_MAX,world);