diff --git a/src/pair.cpp b/src/pair.cpp index 538175b31d..9bb1ad212f 100644 --- a/src/pair.cpp +++ b/src/pair.cpp @@ -695,13 +695,15 @@ void Pair::compute_dummy(int eflag, int vflag) /* ---------------------------------------------------------------------- */ void Pair::read_restart(FILE *) { - error->all(FLERR,"BUG: restartinfo=1 but no restart support in pair style"); + if (comm->me == 0) + error->warning(FLERR,"BUG: restartinfo=1 but no restart support in pair style"); } /* ---------------------------------------------------------------------- */ void Pair::write_restart(FILE *) { - error->all(FLERR,"BUG: restartinfo=1 but no restart support in pair style"); + if (comm->me == 0) + error->warning(FLERR,"BUG: restartinfo=1 but no restart support in pair style"); } /* -------------------------------------------------------------------