From f84bc9d30ac944691927c7fecfa89c96aae9c52a Mon Sep 17 00:00:00 2001 From: Loren Schwiebert Date: Thu, 21 Sep 2023 18:39:32 -0400 Subject: [PATCH] Improve patch to work with GTest --- src/FFExp6.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FFExp6.h b/src/FFExp6.h index 129e52aca..944ca19a4 100644 --- a/src/FFExp6.h +++ b/src/FFExp6.h @@ -34,7 +34,7 @@ struct FF_EXP6 : public FFParticle { rMin_1_4(NULL), rMaxSq(NULL), rMaxSq_1_4(NULL) {} virtual ~FF_EXP6() { #ifdef GOMC_CUDA - DestroyExp6CUDAVars(ff.particles->getCUDAVars()); + DestroyExp6CUDAVars(getCUDAVars()); #endif delete[] expConst; delete[] expConst_1_4; @@ -144,7 +144,7 @@ inline void FF_EXP6::Init(ff_setup::Particle const &mie, } } #ifdef GOMC_CUDA - InitExp6VariablesCUDA(varCUDA, rMin, expConst, rMaxSq, size); + InitExp6VariablesCUDA(getCUDAVars(), rMin, expConst, rMaxSq, size); #endif }