diff --git a/src/fix_nve_noforce.cpp b/src/fix_nve_noforce.cpp index 7b79dcc267..9124dfac3e 100644 --- a/src/fix_nve_noforce.cpp +++ b/src/fix_nve_noforce.cpp @@ -25,7 +25,7 @@ using namespace FixConst; FixNVENoforce::FixNVENoforce(LAMMPS *lmp, int narg, char **arg) : Fix(lmp, narg, arg) { - if (narg != 3) error->all(FLERR, "Illegal fix nve/noforce command"); + if (narg != 3) utils::missing_cmd_args(FLERR, "fix nve/noforce", error); time_integrate = 1; }