rename reset metacommands to use reset_atoms

This commit is contained in:
Axel Kohlmeyer
2022-11-21 17:20:29 -05:00
parent 1cb927294f
commit 2b9d5c6c9a
13 changed files with 138 additions and 144 deletions

View File

@ -32,9 +32,6 @@ void Deprecated::command(int narg, char **arg)
if (cmd == "DEPRECATED") {
if (lmp->comm->me == 0) utils::logmesg(lmp, "\nCommand 'DEPRECATED' is a dummy command\n\n");
return;
} else if (cmd == "reset_ids") {
if (lmp->comm->me == 0)
utils::logmesg(lmp, "\n'reset_ids' has been renamed to 'reset atom_ids'\n\n");
} else if (utils::strmatch(cmd, "^kim_")) {
std::string newcmd("kim");
newcmd += " " + cmd.substr(4);
@ -48,8 +45,9 @@ void Deprecated::command(int narg, char **arg)
input->one(newcmd);
return;
} else if (utils::strmatch(cmd, "^reset_")) {
std::string newcmd("reset");
newcmd += " " + cmd.substr(6);
std::string newcmd("reset_atoms");
if ((cmd == "reset_ids") || (cmd == "reset_atom_ids")) newcmd += " id";
if (cmd == "reset_mol_ids") newcmd += " mol";
if (lmp->comm->me == 0)
utils::logmesg(lmp, "\nWARNING: '{}' has been renamed to '{}'. Please update your input.\n\n",
cmd, newcmd);