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

This commit is contained in:
sjplimp
2011-05-20 22:59:15 +00:00
parent 91b6d45b53
commit 3ae193256b
8 changed files with 16 additions and 7 deletions

View File

@ -811,6 +811,13 @@ void Input::accelerator()
if (strcmp(lmp->asuffix,arg[0]) != 0)
error->all("Accelerator command requires matching command-line -a switch");
if (strcmp(arg[0],"off") == 0) {
if (narg != 1) error->all("Illegal accelerator command");
lmp->offaccel = 1;
return;
}
lmp->offaccel = 0;
if (strcmp(arg[0],"cuda") == 0) lmp->cuda->accelerator(narg-1,&arg[1]);
else error->all("Illegal accelerator command");
}