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

This commit is contained in:
sjplimp
2012-06-06 22:53:32 +00:00
parent ef9e700545
commit ac68bb1981
2 changed files with 7 additions and 7 deletions

View File

@ -134,10 +134,10 @@ void FixPrint::end_of_step()
modify->addstep_compute(update->ntimestep + nevery);
if (me == 0) {
if (screenflag && screen) fprintf(screen,copy);
if (screenflag && logfile) fprintf(logfile,copy);
if (screenflag && screen) fprintf(screen,"%s",copy);
if (screenflag && logfile) fprintf(logfile,"%s",copy);
if (fp) {
fprintf(fp,copy);
fprintf(fp,"%s",copy);
fflush(fp);
}
}

View File

@ -273,8 +273,8 @@ void Thermo::header()
sprintf(&line[loc],"\n");
if (me == 0) {
if (screen) fprintf(screen,line);
if (logfile) fprintf(logfile,line);
if (screen) fprintf(screen,"%s",line);
if (logfile) fprintf(logfile,"%s",line);
}
}
@ -343,9 +343,9 @@ void Thermo::compute(int flag)
// print line to screen and logfile
if (me == 0) {
if (screen) fprintf(screen,line);
if (screen) fprintf(screen,"%s",line);
if (logfile) {
fprintf(logfile,line);
fprintf(logfile,"%s",line);
if (flushflag) fflush(logfile);
}
}