more use of utils::logmesg() and {fmt}

This commit is contained in:
Axel Kohlmeyer
2020-06-26 07:23:22 -04:00
parent 24c3f1f752
commit c4855d95e7
4 changed files with 32 additions and 65 deletions

View File

@ -777,12 +777,8 @@ void Replicate::command(int narg, char **arg)
// total time
MPI_Barrier(world);
double time2 = MPI_Wtime();
if (me == 0) {
if (screen)
fprintf(screen," replicate CPU = %g secs\n",time2-time1);
if (logfile)
fprintf(logfile," replicate CPU = %g secs\n",time2-time1);
}
if (me == 0)
utils::logmesg(lmp,fmt::format(" replicate CPU = {:.3f} secs\n",
MPI_Wtime()-time1));
}