From 46561f57bd8f399a9491306605612e07c1cc9463 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 28 Jun 2025 02:34:22 -0400 Subject: [PATCH] use utils::inumeric() to parse integers --- src/compute_orientorder_atom.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/compute_orientorder_atom.cpp b/src/compute_orientorder_atom.cpp index f6c0589a33..5d1ab8597e 100644 --- a/src/compute_orientorder_atom.cpp +++ b/src/compute_orientorder_atom.cpp @@ -88,13 +88,13 @@ ComputeOrientOrderAtom::ComputeOrientOrderAtom(LAMMPS *lmp, int narg, char **arg if (strcmp(arg[iarg + 1], "NULL") == 0) { nnn = 0; } else { - nnn = utils::numeric(FLERR, arg[iarg + 1], false, lmp); + nnn = utils::inumeric(FLERR, arg[iarg + 1], false, lmp); if (nnn <= 0) error->all(FLERR, "Illegal compute orientorder/atom command"); } iarg += 2; } else if (strcmp(arg[iarg], "degrees") == 0) { if (iarg + 2 > narg) error->all(FLERR, "Illegal compute orientorder/atom command"); - nqlist = utils::numeric(FLERR, arg[iarg + 1], false, lmp); + nqlist = utils::inumeric(FLERR, arg[iarg + 1], false, lmp); if (nqlist <= 0) error->all(FLERR, "Illegal compute orientorder/atom command"); memory->destroy(qlist); memory->create(qlist, nqlist, "orientorder/atom:qlist"); @@ -102,7 +102,7 @@ ComputeOrientOrderAtom::ComputeOrientOrderAtom(LAMMPS *lmp, int narg, char **arg if (iarg + nqlist > narg) error->all(FLERR, "Illegal compute orientorder/atom command"); qmax = 0; for (int il = 0; il < nqlist; il++) { - qlist[il] = utils::numeric(FLERR, arg[iarg + il], false, lmp); + qlist[il] = utils::inumeric(FLERR, arg[iarg + il], false, lmp); if (qlist[il] < 0) error->all(FLERR, "Illegal compute orientorder/atom command"); if (qlist[il] > qmax) qmax = qlist[il]; } @@ -118,7 +118,7 @@ ComputeOrientOrderAtom::ComputeOrientOrderAtom(LAMMPS *lmp, int narg, char **arg } else if (strcmp(arg[iarg], "components") == 0) { qlcompflag = 1; if (iarg + 2 > narg) error->all(FLERR, "Illegal compute orientorder/atom command"); - qlcomp = utils::numeric(FLERR, arg[iarg + 1], false, lmp); + qlcomp = utils::inumeric(FLERR, arg[iarg + 1], false, lmp); iqlcomp = -1; for (int il = 0; il < nqlist; il++) if (qlcomp == qlist[il]) { @@ -135,7 +135,7 @@ ComputeOrientOrderAtom::ComputeOrientOrderAtom(LAMMPS *lmp, int narg, char **arg iarg += 2; } else if (strcmp(arg[iarg], "chunksize") == 0) { if (iarg + 2 > narg) error->all(FLERR, "Illegal compute orientorder/atom command"); - chunksize = utils::numeric(FLERR, arg[iarg + 1], false, lmp); + chunksize = utils::inumeric(FLERR, arg[iarg + 1], false, lmp); if (chunksize <= 0) error->all(FLERR, "Illegal compute orientorder/atom command"); iarg += 2; } else