git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10346 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2013-07-25 15:49:50 +00:00
parent 2b91796606
commit 971b4e98df
6 changed files with 435 additions and 21 deletions

View File

@ -634,15 +634,16 @@ int Modify::min_reset_ref()
void Modify::add_fix(int narg, char **arg, char *suffix)
{
const char *exceptions[NEXCEPT] = {"GPU","OMP","atom/property","cmap"};
if (narg < 3) error->all(FLERR,"Illegal fix command");
// cannot define fix before box exists unless style is in exception list
// don't like this way of checking for exceptions by adding fixes to list,
// 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
// since some fixes access domain settings in their constructor
// change NEXCEPT above when add new fix to this list
const char *exceptions[NEXCEPT] = {"GPU","OMP","property/atom","cmap"};
if (domain->box_exist == 0) {
int m;