diff --git a/src/error.cpp b/src/error.cpp index 448858b02d..3686ab3ecf 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -106,8 +106,9 @@ void Error::one(const char *file, int line, const char *str) if (screen) fprintf(screen,"ERROR on proc %d: %s (%s:%d)\n", me,str,file,line); if (universe->nworlds > 1) - fprintf(universe->uscreen,"ERROR on proc %d: %s (%s:%d)\n", - universe->me,str,file,line); + if (universe->uscreen) + fprintf(universe->uscreen,"ERROR on proc %d: %s (%s:%d)\n", + universe->me,str,file,line); MPI_Abort(world,1); } diff --git a/src/pair_lj96_cut.cpp b/src/pair_lj96_cut.cpp index 8eb9a3d9d5..0ccc343a4e 100644 --- a/src/pair_lj96_cut.cpp +++ b/src/pair_lj96_cut.cpp @@ -452,7 +452,8 @@ void PairLJ96Cut::settings(int narg, char **arg) void PairLJ96Cut::coeff(int narg, char **arg) { - if (narg < 4 || narg > 5) error->all(FLERR,"Incorrect args for pair coefficients"); + if (narg < 4 || narg > 5) + error->all(FLERR,"Incorrect args for pair coefficients"); if (!allocated) allocate(); int ilo,ihi,jlo,jhi;