duplicate calc of r
This commit is contained in:
@ -292,8 +292,6 @@ __kernel void k_dpd_charged(const __global numtyp4 *restrict x_,
|
|||||||
if ( cutsq[mtype].w != 0.0 && rsq < cutsq[mtype].w){
|
if ( cutsq[mtype].w != 0.0 && rsq < cutsq[mtype].w){
|
||||||
numtyp r2inv=ucl_recip(rsq);
|
numtyp r2inv=ucl_recip(rsq);
|
||||||
numtyp _erfc;
|
numtyp _erfc;
|
||||||
|
|
||||||
numtyp r = ucl_rsqrt(r2inv);
|
|
||||||
numtyp grij = g_ewald * r;
|
numtyp grij = g_ewald * r;
|
||||||
numtyp expm2 = ucl_exp(-grij*grij);
|
numtyp expm2 = ucl_exp(-grij*grij);
|
||||||
numtyp t = ucl_recip((numtyp)1.0 + EWALD_P*grij);
|
numtyp t = ucl_recip((numtyp)1.0 + EWALD_P*grij);
|
||||||
@ -478,8 +476,6 @@ __kernel void k_dpd_charged_fast(const __global numtyp4 *restrict x_,
|
|||||||
if ( cutsq[mtype].w != 0.0 && rsq < cutsq[mtype].w){
|
if ( cutsq[mtype].w != 0.0 && rsq < cutsq[mtype].w){
|
||||||
numtyp r2inv=ucl_recip(rsq);
|
numtyp r2inv=ucl_recip(rsq);
|
||||||
numtyp _erfc;
|
numtyp _erfc;
|
||||||
|
|
||||||
numtyp r = ucl_rsqrt(r2inv);
|
|
||||||
numtyp grij = g_ewald * r;
|
numtyp grij = g_ewald * r;
|
||||||
numtyp expm2 = ucl_exp(-grij*grij);
|
numtyp expm2 = ucl_exp(-grij*grij);
|
||||||
numtyp t = ucl_recip((numtyp)1.0 + EWALD_P*grij);
|
numtyp t = ucl_recip((numtyp)1.0 + EWALD_P*grij);
|
||||||
|
|||||||
Reference in New Issue
Block a user