From ad89319d7c5e11c491b766a037d54e2dcf3c0231 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Fri, 20 May 2011 23:39:34 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6201 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/input.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/input.cpp b/src/input.cpp index 6d38318089..370f6ceb8b 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -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"); }