Unverified Commit df3fad3b authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

output number of processors when reporting a mismatch on reading a restart

parent d4d5f241
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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