git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12276 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -390,9 +390,8 @@ void CreateAtoms::command(int narg, char **arg)
|
|||||||
|
|
||||||
int molcreate = (atom->nlocal - nlocal_previous) / onemol->natoms;
|
int molcreate = (atom->nlocal - nlocal_previous) / onemol->natoms;
|
||||||
|
|
||||||
// for atom style template systems, increment total bonds,angles,etc
|
// increment total bonds,angles,etc
|
||||||
|
|
||||||
if (atom->molecular == 2) {
|
|
||||||
bigint nmolme = molcreate;
|
bigint nmolme = molcreate;
|
||||||
bigint nmoltotal;
|
bigint nmoltotal;
|
||||||
MPI_Allreduce(&nmolme,&nmoltotal,1,MPI_LMP_BIGINT,MPI_SUM,world);
|
MPI_Allreduce(&nmolme,&nmoltotal,1,MPI_LMP_BIGINT,MPI_SUM,world);
|
||||||
@ -400,7 +399,6 @@ void CreateAtoms::command(int narg, char **arg)
|
|||||||
atom->nangles += nmoltotal * onemol->nangles;
|
atom->nangles += nmoltotal * onemol->nangles;
|
||||||
atom->ndihedrals += nmoltotal * onemol->ndihedrals;
|
atom->ndihedrals += nmoltotal * onemol->ndihedrals;
|
||||||
atom->nimpropers += nmoltotal * onemol->nimpropers;
|
atom->nimpropers += nmoltotal * onemol->nimpropers;
|
||||||
}
|
|
||||||
|
|
||||||
// if atom style template
|
// if atom style template
|
||||||
// maxmol = max molecule ID across all procs, for previous atoms
|
// maxmol = max molecule ID across all procs, for previous atoms
|
||||||
|
|||||||
Reference in New Issue
Block a user