more use of utils::logmesg() and {fmt}
This commit is contained in:
@ -21,6 +21,8 @@
|
||||
#include "force.h"
|
||||
#include "memory.h"
|
||||
#include "error.h"
|
||||
#include "utils.h"
|
||||
#include "fmt/format.h"
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
|
||||
@ -301,14 +303,9 @@ Lattice::Lattice(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp)
|
||||
|
||||
// print lattice spacings
|
||||
|
||||
if (comm->me == 0) {
|
||||
if (screen)
|
||||
fprintf(screen,"Lattice spacing in x,y,z = %g %g %g\n",
|
||||
xlattice,ylattice,zlattice);
|
||||
if (logfile)
|
||||
fprintf(logfile,"Lattice spacing in x,y,z = %g %g %g\n",
|
||||
xlattice,ylattice,zlattice);
|
||||
}
|
||||
if (comm->me == 0)
|
||||
utils::logmesg(lmp,fmt::format("Lattice spacing in x,y,z = {} {} {}\n",
|
||||
xlattice,ylattice,zlattice));
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user