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

This commit is contained in:
sjplimp
2011-01-07 21:42:19 +00:00
parent beabb5e05a
commit 140cdf9485
52 changed files with 417 additions and 220 deletions

View File

@ -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