remove redundant calls to fmt::format() from calls to error->one/all() and utils::logmesg()
This commit is contained in:
@ -530,7 +530,7 @@ LAMMPS::LAMMPS(int narg, char **arg, MPI_Comm communicator) :
|
||||
if (infile == nullptr)
|
||||
error->one(FLERR,"Cannot open input script {}: {}", arg[inflag], utils::getsyserror());
|
||||
if (!helpflag)
|
||||
utils::logmesg(this,fmt::format("LAMMPS ({}{})\n", version, update_string));
|
||||
utils::logmesg(this,"LAMMPS ({}{})\n", version, update_string);
|
||||
|
||||
// warn against using I/O redirection in parallel runs
|
||||
if ((inflag == 0) && (universe->nprocs > 1))
|
||||
@ -626,8 +626,7 @@ LAMMPS::LAMMPS(int narg, char **arg, MPI_Comm communicator) :
|
||||
}
|
||||
|
||||
if ((me == 0) && (!helpflag))
|
||||
utils::logmesg(this,fmt::format("LAMMPS ({})\nProcessor partition = {}\n",
|
||||
version, universe->iworld));
|
||||
utils::logmesg(this,"LAMMPS ({})\nProcessor partition = {}\n", version, universe->iworld);
|
||||
}
|
||||
|
||||
// check consistency of datatype settings in lmptype.h
|
||||
@ -762,8 +761,7 @@ LAMMPS::~LAMMPS() noexcept(false)
|
||||
totalclock = (totalclock - seconds) / 60.0;
|
||||
int minutes = fmod(totalclock,60.0);
|
||||
int hours = (totalclock - minutes) / 60.0;
|
||||
utils::logmesg(this,fmt::format("Total wall time: {}:{:02d}:{:02d}\n",
|
||||
hours, minutes, seconds));
|
||||
utils::logmesg(this, "Total wall time: {}:{:02d}:{:02d}\n", hours, minutes, seconds);
|
||||
}
|
||||
|
||||
if (universe->nworlds == 1) {
|
||||
|
||||
Reference in New Issue
Block a user