21
21
This software is distributed under the GNU General Public License.
22
22
------------------------------------------------------------------------- */
24
__device__ inline F_FLOAT PairLJSmoothCuda_Eval(const F_FLOAT &rsq, const int ij_type, F_FLOAT &factor_lj, int &eflag, ENERGY_FLOAT &evdwl)
24
__device__ inline F_CFLOAT PairLJSmoothCuda_Eval(const F_CFLOAT &rsq, const int ij_type, F_CFLOAT &factor_lj, int &eflag, ENERGY_CFLOAT &evdwl)
26
F_FLOAT fskin, t, tsq, forcelj;
27
const F_FLOAT r2inv = F_F(1.0) / rsq;
28
const F_FLOAT r = _RSQRT_(r2inv);
29
const F_FLOAT r6inv = r2inv * r2inv * r2inv;
32
X_FLOAT cut_lj_innersq = (_cut_innersq_global > X_F(0.0) ? _cut_innersq_global : _cut_innersq[ij_type]);
26
F_CFLOAT fskin, t, tsq, forcelj;
27
const F_CFLOAT r2inv = F_F(1.0) / rsq;
28
const F_CFLOAT r = _RSQRT_(r2inv);
29
const F_CFLOAT r6inv = r2inv * r2inv * r2inv;
32
X_CFLOAT cut_lj_innersq = (_cut_innersq_global > X_F(0.0) ? _cut_innersq_global : _cut_innersq[ij_type]);
34
34
if(rsq < cut_lj_innersq) {
35
35
forcelj = r6inv * (_lj1[ij_type] * r6inv - _lj2[ij_type]);