expand deprecation warnings

This commit is contained in:
Axel Kohlmeyer
2025-02-01 22:37:13 -05:00
parent d1e65d0b9a
commit 22eb984e68
2 changed files with 6 additions and 4 deletions

View File

@ -307,7 +307,8 @@ void Comm::modify_params(int narg, char **arg)
mode = Comm::MULTI;
} else if (strcmp(arg[iarg+1],"multi/old") == 0) {
if (me == 0)
error->warning(FLERR, "Comm mode 'multi/old' is deprecated and will be removed soon");
error->warning(FLERR, "Comm mode 'multi/old' is deprecated and will be removed soon.\n"
"Contact the LAMMPS developers if that creates problems for you.");
if (neighbor->style == Neighbor::MULTI)
error->all(FLERR, iarg+1,
"Cannot use comm mode 'multi/old' with 'multi' style neighbor lists");
@ -370,7 +371,8 @@ void Comm::modify_params(int narg, char **arg)
int i,nlo,nhi;
double cut;
if (me == 0)
error->warning(FLERR, "Comm mode 'multi/old' is deprecated and will be removed soon");
error->warning(FLERR, "Comm mode 'multi/old' is deprecated and will be removed soon.\n"
"Contact the LAMMPS developers if that creates problems for you.");
if (mode == Comm::SINGLE)
error->all(FLERR, iarg, "Use cutoff keyword to set cutoff in single mode");
if (mode == Comm::MULTI)

View File

@ -2638,8 +2638,8 @@ void Neighbor::set(int narg, char **arg)
} else if (strcmp(arg[1],"multi/old") == 0) {
style = Neighbor::MULTI_OLD;
if (me == 0)
error->warning(FLERR, "Neighbor list style 'multi/old' is deprecated "
"and will be removed soon");
error->warning(FLERR, "Neighbor list style 'multi/old' is deprecated and will be removed "
"soon.\nContact the LAMMPS developers if that creates problems for you.");
} else error->all(FLERR, 1, "Unknown neighbor {} argument: {}", arg[0], arg[1]);
if (style == Neighbor::MULTI_OLD && lmp->citeme) lmp->citeme->add(cite_neigh_multi_old);