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

This commit is contained in:
sjplimp
2011-05-20 23:39:34 +00:00
parent 47eae4052f
commit ad89319d7c

View File

@ -817,7 +817,12 @@ void Input::accelerator()
return;
}
lmp->offaccel = 0;
if (strcmp(arg[0],"on") == 0) {
if (narg != 1) error->all("Illegal accelerator command");
lmp->offaccel = 0;
return;
}
if (strcmp(arg[0],"cuda") == 0) lmp->cuda->accelerator(narg-1,&arg[1]);
else error->all("Illegal accelerator command");
}