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

This commit is contained in:
sjplimp
2014-09-10 16:40:17 +00:00
parent 2424201d96
commit 7728d4ecea
2 changed files with 10 additions and 6 deletions

View File

@ -55,7 +55,8 @@ ComputeVoronoi::ComputeVoronoi(LAMMPS *lmp, int narg, char **arg) :
con_mono = NULL;
con_poly = NULL;
tags = occvec = sendocc = lroot = lnext = NULL;
tags = NULL;
occvec = sendocc = lroot = lnext = NULL;
int iarg = 3;
while ( iarg<narg ) {

View File

@ -605,13 +605,16 @@ void LAMMPS::create()
void LAMMPS::post_create()
{
if (!suffix_enable) return;
// default package commands triggered by "-c on" and "-k on"
if (cuda && cuda->cuda_exists) input->one("package cuda 1");
if (kokkos && kokkos->kokkos_exists) input->one("package kokkos");
// suffix will always be set if suffix_enable = 1
// USER-CUDA and KOKKOS have package classes instantiated if enabled
// via "-c on" and "-k on"
// GPU, INTEL, USER-OMP provide their own fixes which will have
// been compiled with LAMMPS if those packages were installed
// check that USER-CUDA and KOKKOS package classes were instantiated
// check that GPU, INTEL, USER-OMP fixes were compiled with LAMMPS
if (!suffix_enable) return;
if (strcmp(suffix,"cuda") == 0 && (cuda == NULL || cuda->cuda_exists == 0))
error->all(FLERR,"Using suffix cuda without USER-CUDA package enabled");