From ab30ed4ca9f2a1a00188adcd14a17cd47f8bea6a Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 16 Oct 2021 05:35:24 -0400 Subject: [PATCH] modernize --- src/GRANULAR/fix_pour.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/GRANULAR/fix_pour.cpp b/src/GRANULAR/fix_pour.cpp index a2f4d91840..b73593b1d7 100644 --- a/src/GRANULAR/fix_pour.cpp +++ b/src/GRANULAR/fix_pour.cpp @@ -268,16 +268,9 @@ FixPour::FixPour(LAMMPS *lmp, int narg, char **arg) : // print stats - if (me == 0) { - if (screen) - fprintf(screen, - "Particle insertion: %d every %d steps, %d by step %d\n", - nper,nfreq,ninsert,nfinal); - if (logfile) - fprintf(logfile, - "Particle insertion: %d every %d steps, %d by step %d\n", - nper,nfreq,ninsert,nfinal); - } + if (me == 0) + utils::logmesg(lmp, "Particle insertion: {} every {} steps, {} by step {}\n", + nper,nfreq,ninsert,nfinal); } /* ---------------------------------------------------------------------- */