forked from lijiext/lammps
Fixing small bug in Kokkos pair styles with long-range Coulombics
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13496 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
48445741dd
commit
721b312498
|
@ -259,7 +259,7 @@ KOKKOS_INLINE_FUNCTION
|
|||
F_FLOAT PairBuckCoulLongKokkos<DeviceType>::
|
||||
compute_ecoul(const F_FLOAT& rsq, const int& i, const int&j,
|
||||
const int& itype, const int& jtype, const F_FLOAT& factor_coul, const F_FLOAT& qtmp) const {
|
||||
if(Specialisation::DoTable) {
|
||||
if(Specialisation::DoTable && rsq > tabinnersq) {
|
||||
union_int_float_t rsq_lookup;
|
||||
rsq_lookup.f = rsq;
|
||||
const int itable = (rsq_lookup.i & ncoulmask) >> ncoulshiftbits;
|
||||
|
|
|
@ -213,7 +213,7 @@ KOKKOS_INLINE_FUNCTION
|
|||
F_FLOAT PairCoulLongKokkos<DeviceType>::
|
||||
compute_ecoul(const F_FLOAT& rsq, const int& i, const int&j,
|
||||
const int& itype, const int& jtype, const F_FLOAT& factor_coul, const F_FLOAT& qtmp) const {
|
||||
if(Specialisation::DoTable) {
|
||||
if(Specialisation::DoTable && rsq > tabinnersq) {
|
||||
union_int_float_t rsq_lookup;
|
||||
rsq_lookup.f = rsq;
|
||||
const int itable = (rsq_lookup.i & ncoulmask) >> ncoulshiftbits;
|
||||
|
|
|
@ -277,7 +277,7 @@ KOKKOS_INLINE_FUNCTION
|
|||
F_FLOAT PairLJCharmmCoulLongKokkos<DeviceType>::
|
||||
compute_ecoul(const F_FLOAT& rsq, const int& i, const int&j,
|
||||
const int& itype, const int& jtype, const F_FLOAT& factor_coul, const F_FLOAT& qtmp) const {
|
||||
if(Specialisation::DoTable) {
|
||||
if(Specialisation::DoTable && rsq > tabinnersq) {
|
||||
union_int_float_t rsq_lookup;
|
||||
rsq_lookup.f = rsq;
|
||||
const int itable = (rsq_lookup.i & ncoulmask) >> ncoulshiftbits;
|
||||
|
|
|
@ -249,7 +249,7 @@ KOKKOS_INLINE_FUNCTION
|
|||
F_FLOAT PairLJClass2CoulLongKokkos<DeviceType>::
|
||||
compute_ecoul(const F_FLOAT& rsq, const int& i, const int&j,
|
||||
const int& itype, const int& jtype, const F_FLOAT& factor_coul, const F_FLOAT& qtmp) const {
|
||||
if(Specialisation::DoTable) {
|
||||
if(Specialisation::DoTable && rsq > tabinnersq) {
|
||||
union_int_float_t rsq_lookup;
|
||||
rsq_lookup.f = rsq;
|
||||
const int itable = (rsq_lookup.i & ncoulmask) >> ncoulshiftbits;
|
||||
|
|
|
@ -240,7 +240,7 @@ KOKKOS_INLINE_FUNCTION
|
|||
F_FLOAT PairLJCutCoulLongKokkos<DeviceType>::
|
||||
compute_ecoul(const F_FLOAT& rsq, const int& i, const int&j,
|
||||
const int& itype, const int& jtype, const F_FLOAT& factor_coul, const F_FLOAT& qtmp) const {
|
||||
if(Specialisation::DoTable) {
|
||||
if(Specialisation::DoTable && rsq > tabinnersq) {
|
||||
union_int_float_t rsq_lookup;
|
||||
rsq_lookup.f = rsq;
|
||||
const int itable = (rsq_lookup.i & ncoulmask) >> ncoulshiftbits;
|
||||
|
|
Loading…
Reference in New Issue