diff --git a/src/deprecated.cpp b/src/deprecated.cpp index 8523cf353a..40974e202b 100644 --- a/src/deprecated.cpp +++ b/src/deprecated.cpp @@ -25,7 +25,7 @@ using namespace LAMMPS_NS; /* ---------------------------------------------------------------------- */ -void Deprecated::command(int /* narg */, char ** /* arg */) +void Deprecated::command(int narg, char **arg) { const std::string cmd = input->command; @@ -38,7 +38,15 @@ void Deprecated::command(int /* narg */, char ** /* arg */) utils::logmesg(lmp,"\n'reset_ids' has been renamed to 'reset_atom_ids'\n\n"); } else if (utils::strmatch(cmd,"^kim_")) { if (lmp->comm->me == 0) - utils::logmesg(lmp,"\n'kim_' has been renamed to 'kim '\n\n"); + utils::logmesg(lmp,"\nWARNING: 'kim_' has been renamed to " + "'kim '. Please update your input.\n\n"); + std::string newcmd("kim"); + newcmd += " " + cmd.substr(4); + for (int i=0; i < narg; ++i) { + newcmd.append(1,' '); + newcmd.append(arg[i]); + } + input->one(newcmd); } error->all(FLERR,"This command is no longer available"); }