git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5504 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -170,14 +170,18 @@ void CreateAtoms::command(int narg, char **arg)
|
||||
|
||||
bigint nblocal = atom->nlocal;
|
||||
MPI_Allreduce(&nblocal,&atom->natoms,1,MPI_LMP_BIGINT,MPI_SUM,world);
|
||||
if (atom->natoms < 0 || atom->natoms > MAXBIGINT)
|
||||
error->all("Too many total atoms");
|
||||
|
||||
// print status
|
||||
|
||||
if (comm->me == 0) {
|
||||
char str[32];
|
||||
sprintf(str,"Created %s atoms\n",BIGINT_FORMAT);
|
||||
if (screen)
|
||||
fprintf(screen,"Created %lu atoms\n",atom->natoms-natoms_previous);
|
||||
fprintf(screen,str,atom->natoms-natoms_previous);
|
||||
if (logfile)
|
||||
fprintf(logfile,"Created %lu atoms\n",atom->natoms-natoms_previous);
|
||||
fprintf(logfile,str,atom->natoms-natoms_previous);
|
||||
}
|
||||
|
||||
// reset simulation now that more atoms are defined
|
||||
|
||||
Reference in New Issue
Block a user