small i/o tweaks

This commit is contained in:
Axel Kohlmeyer 2020-07-24 14:10:30 -04:00
parent 9ceb0fd6a0
commit 79984e31db
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
2 changed files with 3 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -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"