add pair_style deprecated and some tweaks for fix style

This commit is contained in:
Axel Kohlmeyer
2018-10-02 16:26:20 +02:00
parent dba8f9c62b
commit b481af51d6
5 changed files with 154 additions and 5 deletions

View File

@ -23,6 +23,16 @@ using namespace LAMMPS_NS;
FixDeprecated::FixDeprecated(LAMMPS *lmp, int narg, char **arg) :
Fix(lmp, narg, arg)
{
if (strcmp(style,"deprecated") == 0) {
const char *message = "\n"
"NOTE: The fix style 'deprecated' is a dummy fix style that was added to\n"
"LAMMPS in order to print suitable error messages for deleted features.\n\n";
if (comm->me == 0) {
if (screen) fputs(message,screen);
if (logfile) fputs(message,logfile);
}
}
if (strncmp(style,"ave/spatial",11) == 0) {
const char *message = "\n"
"NOTE: The fix styles 'ave/spatial' and 'ave/spatial/sphere' have been replaced\n"