must pass pointer to Error class as argument since static functions don't have access to "this"

This commit is contained in:
Axel Kohlmeyer
2021-06-27 15:40:38 -04:00
parent a74a718b6f
commit ef54c7290e
2 changed files with 3 additions and 3 deletions

View File

@ -189,7 +189,7 @@ KokkosLMP::KokkosLMP(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp)
args.num_numa = numa; args.num_numa = numa;
args.device_id = device; args.device_id = device;
initialize(args); KokkosLMP::initialize(args,error);
// default settings for package kokkos command // default settings for package kokkos command
@ -304,7 +304,7 @@ KokkosLMP::~KokkosLMP()
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
void KokkosLMP::initialize(Kokkos::InitArguments args) void KokkosLMP::initialize(Kokkos::InitArguments args, Error *error)
{ {
if (!Kokkos::is_initialized()) { if (!Kokkos::is_initialized()) {
if (is_finalized) if (is_finalized)

View File

@ -53,7 +53,7 @@ class KokkosLMP : protected Pointers {
KokkosLMP(class LAMMPS *, int, char **); KokkosLMP(class LAMMPS *, int, char **);
~KokkosLMP(); ~KokkosLMP();
static void initialize(Kokkos::InitArguments); static void initialize(Kokkos::InitArguments, Error *);
static void finalize(); static void finalize();
void accelerator(int, char **); void accelerator(int, char **);
int neigh_count(int); int neigh_count(int);