From df3fad3b491d8ba9d1c596890b39003d5eb2b682 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 18 Sep 2019 14:35:12 -0400 Subject: [PATCH] output number of processors when reporting a mismatch on reading a restart --- src/read_restart.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/read_restart.cpp b/src/read_restart.cpp index 3d2e2b6592..62ce209b90 100644 --- a/src/read_restart.cpp +++ b/src/read_restart.cpp @@ -734,8 +734,12 @@ void ReadRestart::header(int incompatible) } else if (flag == NPROCS) { nprocs_file = read_int(); - if (nprocs_file != comm->nprocs && me == 0) - error->warning(FLERR,"Restart file used different # of processors"); + if (nprocs_file != comm->nprocs && me == 0) { + char msg[128]; + snprintf(msg,128,"Restart file used different # of processors: %d vs. %d", + nprocs_file,comm->nprocs); + error->warning(FLERR,msg); + } // don't set procgrid, warn if different