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

This commit is contained in:
sjplimp
2011-01-14 15:53:06 +00:00
parent 353439c414
commit d5b494397e
43 changed files with 318 additions and 334 deletions

View File

@ -215,10 +215,9 @@ void DisplaceAtoms::command(int narg, char **arg)
bigint nblocal = atom->nlocal;
MPI_Allreduce(&nblocal,&natoms,1,MPI_LMP_BIGINT,MPI_SUM,world);
if (natoms != atom->natoms) {
char fstr[64],str[128];
sprintf(fstr,"Lost atoms via displace_atoms: original %s current %s",
BIGINT_FORMAT,BIGINT_FORMAT);
sprintf(str,fstr,atom->natoms,natoms);
char str[128];
sprintf(str,"Lost atoms via displace_atoms: original " BIGINT_FORMAT
" current " BIGINT_FORMAT,atom->natoms,natoms);
error->all(str);
}
}