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

This commit is contained in:
sjplimp
2014-09-09 22:52:01 +00:00
parent 3aaa82088b
commit f864979cdd
2 changed files with 2 additions and 4 deletions

View File

@ -83,8 +83,6 @@ FixGPU::FixGPU(LAMMPS *lmp, int narg, char **arg) :
error->all(FLERR,"Cannot use GPU package with USER-CUDA package enabled"); error->all(FLERR,"Cannot use GPU package with USER-CUDA package enabled");
if (narg < 4) error->all(FLERR,"Illegal package gpu command"); if (narg < 4) error->all(FLERR,"Illegal package gpu command");
if (strcmp(arg[1],"all") != 0)
error->all(FLERR,"Illegal package gpu command");
int ngpu = atoi(arg[3]); int ngpu = atoi(arg[3]);
if (ngpu <= 0) error->all(FLERR,"Illegal package gpu command"); if (ngpu <= 0) error->all(FLERR,"Illegal package gpu command");

View File

@ -861,10 +861,10 @@ int Modify::find_fix(const char *id)
} }
/* ---------------------------------------------------------------------- /* ----------------------------------------------------------------------
check for fix associated with package name check for fix associated with package name in compiled list
return 1 if found else 0 return 1 if found else 0
used to determine whether LAMMPS was built with used to determine whether LAMMPS was built with
GPU, USER-INTEL, USER-OMP packages GPU, USER-INTEL, USER-OMP packages, which have their own fixes
------------------------------------------------------------------------- */ ------------------------------------------------------------------------- */
int Modify::check_package(const char *package_fix_name) int Modify::check_package(const char *package_fix_name)