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

This commit is contained in:
sjplimp 2011-12-01 21:19:42 +00:00
parent a6d0ca14cf
commit 5a968ac62e
2 changed files with 4 additions and 2 deletions

View File

@ -1151,6 +1151,7 @@ void Input::package()
modify->add_fix(2+narg,fixarg,NULL);
modify->allow_early_fix = 0;
delete [] fixarg;
} else error->all(FLERR,"Illegal package command");
}

View File

@ -467,14 +467,15 @@ void LAMMPS::create()
}
/* ----------------------------------------------------------------------
invoke package-specific commands
called from LAMMPS instance constructor and after clear() command
invoke package-specific setup commands
called from LAMMPS constructor and after clear() command
only invoke if suffix is set and enabled
------------------------------------------------------------------------- */
void LAMMPS::post_create()
{
if (suffix && suffix_enable) {
if (strcmp(suffix,"gpu") == 0) input->one("package gpu force/neigh 0 0 1");
if (strcmp(suffix,"omp") == 0) input->one("package omp *");
}
}