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

@ -785,16 +785,17 @@ void Modify::add_fix(int narg, char **arg, int trysuffix)
// but can't think of better way
// too late if instantiate fix, then check flag set in fix constructor,
// since some fixes access domain settings in their constructor
// MUST change NEXCEPT above when add new fix to this list
// NULL must be last entry in this list
const char *exceptions[NEXCEPT] =
{"GPU","OMP","INTEL","property/atom","cmap","cmap3","rx"};
const char *exceptions[] =
{"GPU", "OMP", "INTEL", "property/atom", "cmap", "cmap3", "rx",
"deprecated", NULL};
if (domain->box_exist == 0) {
int m;
for (m = 0; m < NEXCEPT; m++)
for (m = 0; exceptions[m] != NULL; m++)
if (strcmp(arg[2],exceptions[m]) == 0) break;
if (m == NEXCEPT)
if (exceptions[m] == NULL)
error->all(FLERR,"Fix command before simulation box is defined");
}