git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@7363 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -26,6 +26,7 @@ class Atom : protected Pointers {
|
||||
// atom counts
|
||||
|
||||
bigint natoms; // total # of atoms in system, could be 0
|
||||
// natoms may not be current if atoms lost
|
||||
int nlocal,nghost; // # of owned and ghost atoms on this proc
|
||||
int nmax; // max # of owned+ghost in arrays on this proc
|
||||
int tag_enable; // 0/1 if atom ID tags are defined
|
||||
|
||||
@ -363,7 +363,8 @@ bigint Thermo::lost_check()
|
||||
bigint ntotal;
|
||||
bigint nblocal = atom->nlocal;
|
||||
MPI_Allreduce(&nblocal,&ntotal,1,MPI_LMP_BIGINT,MPI_SUM,world);
|
||||
if (ntotal < 0 || ntotal > MAXBIGINT) error->all(FLERR,"Too many total atoms");
|
||||
if (ntotal < 0 || ntotal > MAXBIGINT)
|
||||
error->all(FLERR,"Too many total atoms");
|
||||
if (ntotal == atom->natoms) return ntotal;
|
||||
|
||||
// if not checking or already warned, just return
|
||||
|
||||
Reference in New Issue
Block a user