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

This commit is contained in:
sjplimp
2016-05-31 16:20:32 +00:00
parent 5b94aa3ae8
commit 04e401ae4b
13 changed files with 13 additions and 106 deletions

View File

@ -46,7 +46,6 @@
#include "special.h"
#include "timer.h"
#include "variable.h"
#include "accelerator_cuda.h"
#include "accelerator_kokkos.h"
#include "error.h"
#include "memory.h"
@ -1567,13 +1566,7 @@ void Input::package()
// 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 == NULL || lmp->cuda->cuda_exists == 0)
error->all(FLERR,
"Package cuda command without USER-CUDA package enabled");
lmp->cuda->accelerator(narg-1,&arg[1]);
} else if (strcmp(arg[0],"gpu") == 0) {
if (strcmp(arg[0],"gpu") == 0) {
if (!modify->check_package("GPU"))
error->all(FLERR,"Package gpu command without GPU package installed");