git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6305 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -58,8 +58,13 @@ Update::Update(LAMMPS *lmp) : Pointers(lmp)
|
||||
minimize_style = NULL;
|
||||
minimize = NULL;
|
||||
|
||||
str = (char *) "verlet";
|
||||
create_integrate(1,&str,lmp->suffix);
|
||||
if (lmp->cuda) {
|
||||
str = (char *) "verlet/cuda";
|
||||
create_integrate(1,&str,NULL);
|
||||
} else {
|
||||
str = (char *) "verlet";
|
||||
create_integrate(1,&str,NULL);
|
||||
}
|
||||
|
||||
str = (char *) "cg";
|
||||
create_minimize(1,&str);
|
||||
@ -82,6 +87,16 @@ Update::~Update()
|
||||
|
||||
void Update::init()
|
||||
{
|
||||
// if USER-CUDA mode is enabled:
|
||||
// integrate/minimize style must be CUDA variant
|
||||
|
||||
if (whichflag == 1 && lmp->cuda)
|
||||
if (strstr(integrate_style,"cuda") == NULL)
|
||||
error->all("USER-CUDA mode requires CUDA variant of run style");
|
||||
if (whichflag == 2 && lmp->cuda)
|
||||
if (strstr(minimize_style,"cuda") == NULL)
|
||||
error->all("USER-CUDA mode requires CUDA variant of min style");
|
||||
|
||||
// init the appropriate integrate and/or minimize class
|
||||
// if neither (e.g. from write_restart) then just return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user