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

This commit is contained in:
sjplimp
2011-01-14 16:04:55 +00:00
parent d5b494397e
commit 9b00fc4b99
3 changed files with 10 additions and 11 deletions

View File

@ -157,13 +157,12 @@ void ImproperClass2::compute(int eflag, int vflag)
int me;
MPI_Comm_rank(world,&me);
if (screen) {
char str[128],fstr[64];
sprintf(fstr,"Improper problem: %%d %s %%d %%d %%d %%d",
BIGINT_FORMAT);
sprintf(str,fstr,me,update->ntimestep,
char str[128];
sprintf(str,
"Improper problem: %d " BIGINT_FORMAT " %d %d %d %d",
me,update->ntimestep,
atom->tag[i1],atom->tag[i2],atom->tag[i3],atom->tag[i4]);
error->warning(str,0);
error->warning(str,0);
fprintf(screen," 1st atom: %d %g %g %g\n",
me,x[i1][0],x[i1][1],x[i1][2]);
fprintf(screen," 2nd atom: %d %g %g %g\n",

View File

@ -404,13 +404,13 @@ void FixOrientFCC::post_force(int vflag)
if (me == 0) {
if (screen) fprintf(screen,
"orient step %d: " BIGINT_FORMAT
"orient step " BIGINT_FORMAT ": " BIGINT_FORMAT
" atoms have %d neighbors\n",
update->ntimestep,atom->natoms,total);
if (logfile) fprintf(logfile,
"orient step %d: " BIGINT_FORMAT
" atoms have %d neighbors\n",
update->ntimestep,atom->natoms,total);
"orient step " BIGINT_FORMAT ": " BIGINT_FORMAT
" atoms have %d neighbors\n",
update->ntimestep,atom->natoms,total);
if (screen)
fprintf(screen," neighs: min = %d, max = %d, ave = %g\n",
min,max,ave);

View File

@ -514,8 +514,8 @@ void Thermo::modify_params(int narg, char **arg)
if (ptr == NULL)
error->all("Thermo_modify int format does not contain d character");
*ptr = '\0';
sprintf(format_bigint_user,"%s" BIGINT_FORMAT "%s",
format_int_user,ptr+1);
sprintf(format_bigint_user,"%s%s%s",format_int_user,
BIGINT_FORMAT,ptr+1);
*ptr = 'd';
} else if (strcmp(arg[iarg+1],"float") == 0) {
if (format_float_user) delete [] format_float_user;