From 1849df15e00d7a8dd6273c165f302073a0413377 Mon Sep 17 00:00:00 2001 From: Trung Nguyen Date: Thu, 7 Dec 2023 10:16:40 -0600 Subject: [PATCH] Removed unused member functions in edpd --- lib/gpu/lal_base_dpd.h | 4 +--- lib/gpu/lal_edpd.cpp | 10 ---------- lib/gpu/lal_edpd.h | 8 ++------ lib/gpu/lal_mdpd.h | 4 ++-- 4 files changed, 5 insertions(+), 21 deletions(-) diff --git a/lib/gpu/lal_base_dpd.h b/lib/gpu/lal_base_dpd.h index 6e9451d72a..64ec725d95 100644 --- a/lib/gpu/lal_base_dpd.h +++ b/lib/gpu/lal_base_dpd.h @@ -196,11 +196,9 @@ class BaseDPD { numtyp _dtinvsqrt; int _seed, _timestep; - int _extra_fields; - protected: bool _compiled; - int _block_size, _threads_per_atom, _onetype; + int _block_size, _threads_per_atom, _onetype, _extra_fields; double _max_bytes, _max_an_bytes; double _gpu_overhead, _driver_overhead; UCL_D_Vec *_nbor_data; diff --git a/lib/gpu/lal_edpd.cpp b/lib/gpu/lal_edpd.cpp index 2a32d01abb..c85644a60b 100644 --- a/lib/gpu/lal_edpd.cpp +++ b/lib/gpu/lal_edpd.cpp @@ -271,16 +271,6 @@ int EDPDT::loop(const int eflag, const int vflag) { return GX; } -template -void EDPDT::update_coeff(int ntypes, double **host_a0, double **host_gamma, - double **host_sigma, double **host_cut) -{ - UCL_H_Vec host_write(_lj_types*_lj_types*32,*(this->ucl_device), - UCL_WRITE_ONLY); - this->atom->type_pack4(ntypes,_lj_types,coeff,host_write,host_a0,host_gamma, - host_sigma,host_cut); -} - // --------------------------------------------------------------------------- // Get the extra data pointers from host // --------------------------------------------------------------------------- diff --git a/lib/gpu/lal_edpd.h b/lib/gpu/lal_edpd.h index b7935bf2f4..c293b86ee6 100644 --- a/lib/gpu/lal_edpd.h +++ b/lib/gpu/lal_edpd.h @@ -13,8 +13,8 @@ email : ndactrung@gmail.com ***************************************************************************/ -#ifndef LAL_DPD_H -#define LAL_DPD_H +#ifndef LAL_EDPD_H +#define LAL_EDPD_H #include "lal_base_dpd.h" @@ -56,10 +56,6 @@ class EDPD : public BaseDPD { /// Total host memory used by library for pair style double host_memory_usage() const; - /// Update coeff if needed (tstat only) - void update_coeff(int ntypes, double **host_a0, double **host_gamma, - double **host_sigma, double **host_cut); - void get_extra_data(double *host_T, double *host_cv); /// copy Q (flux) from device to host diff --git a/lib/gpu/lal_mdpd.h b/lib/gpu/lal_mdpd.h index ca702dba73..0e95185714 100644 --- a/lib/gpu/lal_mdpd.h +++ b/lib/gpu/lal_mdpd.h @@ -13,8 +13,8 @@ email : ndactrung@gmail.com ***************************************************************************/ -#ifndef LAL_DPD_H -#define LAL_DPD_H +#ifndef LAL_MDPD_H +#define LAL_MDPD_H #include "lal_base_dpd.h"