Unverified Commit 79984e31 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

small i/o tweaks

parent 9ceb0fd6
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);
    }
  }
+1 −1
Original line number Diff line number Diff line
@@ -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"