git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8227 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -134,10 +134,10 @@ void FixPrint::end_of_step()
|
|||||||
modify->addstep_compute(update->ntimestep + nevery);
|
modify->addstep_compute(update->ntimestep + nevery);
|
||||||
|
|
||||||
if (me == 0) {
|
if (me == 0) {
|
||||||
if (screenflag && screen) fprintf(screen,copy);
|
if (screenflag && screen) fprintf(screen,"%s",copy);
|
||||||
if (screenflag && logfile) fprintf(logfile,copy);
|
if (screenflag && logfile) fprintf(logfile,"%s",copy);
|
||||||
if (fp) {
|
if (fp) {
|
||||||
fprintf(fp,copy);
|
fprintf(fp,"%s",copy);
|
||||||
fflush(fp);
|
fflush(fp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -273,8 +273,8 @@ void Thermo::header()
|
|||||||
sprintf(&line[loc],"\n");
|
sprintf(&line[loc],"\n");
|
||||||
|
|
||||||
if (me == 0) {
|
if (me == 0) {
|
||||||
if (screen) fprintf(screen,line);
|
if (screen) fprintf(screen,"%s",line);
|
||||||
if (logfile) fprintf(logfile,line);
|
if (logfile) fprintf(logfile,"%s",line);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -343,9 +343,9 @@ void Thermo::compute(int flag)
|
|||||||
// print line to screen and logfile
|
// print line to screen and logfile
|
||||||
|
|
||||||
if (me == 0) {
|
if (me == 0) {
|
||||||
if (screen) fprintf(screen,line);
|
if (screen) fprintf(screen,"%s",line);
|
||||||
if (logfile) {
|
if (logfile) {
|
||||||
fprintf(logfile,line);
|
fprintf(logfile,"%s",line);
|
||||||
if (flushflag) fflush(logfile);
|
if (flushflag) fflush(logfile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user