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

This commit is contained in:
sjplimp
2015-03-23 15:36:07 +00:00
parent e4fd7af5ab
commit d744af1de7
3 changed files with 4 additions and 3 deletions

View File

@ -54,6 +54,7 @@ class KokkosLMP {
class AtomKokkos : public Atom {
public:
tagint **k_special;
AtomKokkos(class LAMMPS *lmp) : Atom(lmp) {}
~AtomKokkos() {}
};

View File

@ -32,11 +32,13 @@ class Memory : protected Pointers {
void fail(const char *);
// Kokkos memory allocation functions
// could provide a dummy any Kokkos memory function
// provide a dummy prototpye for any Kokkos memory function
// called in main LAMMPS even when not built with KOKKOS package
#ifdef LMP_KOKKOS
#include "memory_kokkos.h"
#else
void grow_kokkos(tagint **, tagint **, int, int, const char*) {}
#endif
/* ----------------------------------------------------------------------

View File

@ -575,10 +575,8 @@ void Special::combine()
if (lmp->kokkos) {
AtomKokkos* atomKK = (AtomKokkos*) atom;
#ifdef LMP_KOKKOS
memory->grow_kokkos(atomKK->k_special,atom->special,
atom->nmax,atom->maxspecial,"atom:special");
#endif
} else {
memory->destroy(atom->special);
memory->create(atom->special,atom->nmax,atom->maxspecial,"atom:special");