minor changes

This commit is contained in:
Gurgen
2021-04-17 14:56:16 +03:00
parent 3e3f66adac
commit a91e904f34
4 changed files with 7 additions and 9 deletions

View File

@ -145,7 +145,7 @@ double LJSMOOTHT::host_memory_usage() const {
// Calculate energies, forces, and torques // Calculate energies, forces, and torques
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
template <class numtyp, class acctyp> template <class numtyp, class acctyp>
void LJSMOOTHT::loop(const bool _eflag, const bool _vflag) { int LJSMOOTHT::loop(const bool _eflag, const bool _vflag) {
// Compute the block size and grid size to keep all cores busy // Compute the block size and grid size to keep all cores busy
const int BX=this->block_size(); const int BX=this->block_size();
int eflag, vflag; int eflag, vflag;

View File

@ -1,13 +1,13 @@
/*************************************************************************** /***************************************************************************
lj_smooth.h lj_smooth.h
------------------- -------------------
W. Michael Brown (ORNL) G. Melikyan
Class for acceleration of the lj/smooth pair style. Class for acceleration of the lj/smooth pair style.
__________________________________________________________________________ __________________________________________________________________________
This file is part of the LAMMPS Accelerator Library (LAMMPS_AL) This file is part of the LAMMPS Accelerator Library (LAMMPS_AL)
__________________________________________________________________________ __________________________________________________________________________
begin : begin :
email : brownw@ornl.gov email : gkmelikyan@edu.hse.ru
***************************************************************************/ ***************************************************************************/
#ifndef LAL_LJ_SMOOTH_H #ifndef LAL_LJ_SMOOTH_H
@ -83,7 +83,7 @@ class LJSMOOTH : public BaseAtomic<numtyp, acctyp> {
private: private:
bool _allocated; bool _allocated;
void loop(const bool _eflag, const bool _vflag); int loop(const int _eflag, const int _vflag);
}; };
} }

View File

@ -142,5 +142,3 @@ void ljsmt_gpu_compute(const int ago, const int inum_full, const int nall,
double ljsmt_gpu_bytes() { double ljsmt_gpu_bytes() {
return LJSMTMF.host_memory_usage(); return LJSMTMF.host_memory_usage();
} }