diff --git a/src/input.cpp b/src/input.cpp index 714b6b5a60..1345ef370e 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -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"); } diff --git a/src/lammps.cpp b/src/lammps.cpp index d29797b028..c845599412 100644 --- a/src/lammps.cpp +++ b/src/lammps.cpp @@ -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 *"); } }