make more use of utils::logmesg()

This commit is contained in:
Axel Kohlmeyer
2020-07-31 22:16:06 -04:00
parent 74f50ed1bd
commit 729cc81f31
11 changed files with 30 additions and 34 deletions

View File

@ -103,7 +103,7 @@ void ReadRestart::command(int narg, char **arg)
// open single restart file or base file for multiproc case
if (me == 0) {
if (screen) fprintf(screen,"Reading restart file ...\n");
utils::logmesg(lmp,"Reading restart file ...\n");
std::string hfile = file;
if (multiproc) {
hfile.replace(hfile.find("%"),1,"base");
@ -620,10 +620,9 @@ void ReadRestart::header()
if (flag == VERSION) {
char *version = read_string();
if (me == 0) {
if (screen) fprintf(screen," restart file = %s, LAMMPS = %s\n",
version,universe->version);
}
if (me == 0)
utils::logmesg(lmp,fmt::format(" restart file = {}, LAMMPS = {}\n",
version,universe->version));
delete [] version;
// we have no forward compatibility, thus exit with error