expand deprecation warnings
This commit is contained in:
@ -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)
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user