forked from lijiext/lammps
small i/o tweaks
This commit is contained in:
parent
9ceb0fd6a0
commit
79984e31db
|
@ -182,10 +182,9 @@ void FixPrint::end_of_step()
|
|||
modify->addstep_compute(next_print);
|
||||
|
||||
if (me == 0) {
|
||||
if (screenflag && screen) fprintf(screen,"%s\n",copy);
|
||||
if (screenflag && logfile) fprintf(logfile,"%s\n",copy);
|
||||
if (screenflag) utils::logmesg(lmp,std::string(copy) + "\n");
|
||||
if (fp) {
|
||||
fprintf(fp,"%s\n",copy);
|
||||
fmt::print(fp,"{}\n",copy);
|
||||
fflush(fp);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ void Verlet::init()
|
|||
void Verlet::setup(int flag)
|
||||
{
|
||||
if (comm->me == 0 && screen) {
|
||||
fprintf(screen,"Setting up Verlet run ...\n");
|
||||
fputs("Setting up Verlet run ...\n",screen);
|
||||
if (flag) {
|
||||
fmt::print(screen," Unit style : {}\n"
|
||||
" Current step : {}\n"
|
||||
|
|
Loading…
Reference in New Issue