make default style name for deprecated styles uppercase, so it is considered internal

also consolidate the writeout message across styles into a single convenience function
This commit is contained in:
Axel Kohlmeyer
2018-10-17 16:04:52 -04:00
parent 43ae9656d7
commit b71f530bd0
6 changed files with 31 additions and 41 deletions

View File

@ -38,11 +38,8 @@ static void writemsg(LAMMPS *lmp, const char *msg, int abend=1)
void Deprecated::command(int narg, char **arg)
{
if (strcmp(input->command,"deprecated") == 0) {
writemsg(lmp,"\nCommand 'deprecated' is a dummy command\n\n",0);
if (strcmp(input->command,"DEPRECATED") == 0) {
writemsg(lmp,"\nCommand 'DEPRECATED' is a dummy command\n\n",0);
} else if (strcmp(input->command,"XXX") == 0) {
writemsg(lmp, "\nCommand 'XXX' has been removed from LAMMPS "
"after the\n## XXX 20## stable release.\n\n");
}
}