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)