add removed commands to Deprecated commands list and processing

This commit is contained in:
Axel Kohlmeyer
2021-02-23 09:36:20 -05:00
parent 293ebad98f
commit 8c9e9fa9ee
3 changed files with 9 additions and 1 deletions

View File

@ -328,7 +328,7 @@ void PairKIM::coeff(int narg, char **arg)
// This is called when "pair_coeff ..." is read from input // This is called when "pair_coeff ..." is read from input
// may be called multiple times // may be called multiple times
int i,j,n; int i,j;
if (!allocated) allocate(); if (!allocated) allocate();

View File

@ -36,6 +36,9 @@ void Deprecated::command(int /* narg */, char ** /* arg */)
} else if (cmd == "reset_ids") { } else if (cmd == "reset_ids") {
if (lmp->comm->me == 0) if (lmp->comm->me == 0)
utils::logmesg(lmp,"\n'reset_ids' has been renamed to 'reset_atom_ids'\n\n"); 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_<command>' has been renamed to 'kim <command>'\n\n");
} }
error->all(FLERR,"This command is no longer available"); error->all(FLERR,"This command is no longer available");
} }

View File

@ -15,6 +15,11 @@
CommandStyle(DEPRECATED,Deprecated) CommandStyle(DEPRECATED,Deprecated)
CommandStyle(reset_ids,Deprecated) CommandStyle(reset_ids,Deprecated)
CommandStyle(kim_init,Deprecated)
CommandStyle(kim_interactions,Deprecated)
CommandStyle(kim_param,Deprecated)
CommandStyle(kim_property,Deprecated)
CommandStyle(kim_query,Deprecated)
#else #else