git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12458 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -1401,10 +1401,13 @@ void Input::package()
|
||||
error->all(FLERR,"Package command after simulation box is defined");
|
||||
if (narg < 1) error->all(FLERR,"Illegal package command");
|
||||
|
||||
// same checks for packages existing as in LAMMPS::post_create()
|
||||
// since can be invoked here by package command in input script
|
||||
|
||||
if (strcmp(arg[0],"cuda") == 0) {
|
||||
if (!lmp->cuda)
|
||||
if (lmp->cuda == NULL || lmp->cuda->cuda_exists == 0)
|
||||
error->all(FLERR,
|
||||
"Package cuda command without USER-CUDA package installed");
|
||||
"Package cuda command without USER-CUDA package enabled");
|
||||
lmp->cuda->accelerator(narg-1,&arg[1]);
|
||||
|
||||
} else if (strcmp(arg[0],"gpu") == 0) {
|
||||
@ -1420,9 +1423,9 @@ void Input::package()
|
||||
delete [] fixarg;
|
||||
|
||||
} else if (strcmp(arg[0],"kokkos") == 0) {
|
||||
if (!lmp->kokkos)
|
||||
if (lmp->kokkos == NULL || lmp->kokkos->kokkos_exists == 0)
|
||||
error->all(FLERR,
|
||||
"Package kokkos command without KOKKOS package installed");
|
||||
"Package kokkos command without KOKKOS package enabled");
|
||||
lmp->kokkos->accelerator(narg-1,&arg[1]);
|
||||
|
||||
} else if (strcmp(arg[0],"omp") == 0) {
|
||||
|
||||
Reference in New Issue
Block a user