From fa5ecf88a5aed141a2e099fab566b8ba4576ae7d Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 1 Jun 2018 16:13:05 -0400 Subject: [PATCH] change error->all to error->warning on pair style restartinfo bug --- src/pair.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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"); } /* -------------------------------------------------------------------