From 22eb984e68dab2fcc27016de04e2042bc1dfa8a3 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 1 Feb 2025 22:37:13 -0500 Subject: [PATCH] expand deprecation warnings --- src/comm.cpp | 6 ++++-- src/neighbor.cpp | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/comm.cpp b/src/comm.cpp index 189bdc2e24..9b40d71021 100644 --- a/src/comm.cpp +++ b/src/comm.cpp @@ -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) diff --git a/src/neighbor.cpp b/src/neighbor.cpp index c5df77d39d..e12713094e 100644 --- a/src/neighbor.cpp +++ b/src/neighbor.cpp @@ -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);