diff --git a/src/compute_pair_local.cpp b/src/compute_pair_local.cpp index 708b31c370..3176bb667b 100644 --- a/src/compute_pair_local.cpp +++ b/src/compute_pair_local.cpp @@ -68,7 +68,7 @@ ComputePairLocal::ComputePairLocal(LAMMPS *lmp, int narg, char **arg) : pstyle[nvalues++] = DZ; else if (arg[iarg][0] == 'p') { int n = atoi(&arg[iarg][1]); - if (n <= 0) error->all(FLERR, "Invalid keyword in compute pair/local command"); + if (n <= 0) error->all(FLERR, "Invalid keyword {} in compute pair/local command", arg[iarg]); pstyle[nvalues] = PN; pindex[nvalues++] = n - 1; diff --git a/src/reader_xyz.cpp b/src/reader_xyz.cpp index 1f379bc0dd..7add54fdb9 100644 --- a/src/reader_xyz.cpp +++ b/src/reader_xyz.cpp @@ -179,8 +179,7 @@ void ReaderXYZ::read_atoms(int n, int nfield, double **fields) ++nid; rv = sscanf(line,"%*s%lg%lg%lg", &myx, &myy, &myz); - if (rv != 3) - error->one(FLERR,"Dump file is incorrectly formatted"); + if (rv != 3) error->one(FLERR,"Dump file is incorrectly formatted"); // XXX: we could insert an element2type translation here // XXX: for now we flag unrecognized types as type 0,