You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cpp/common_resources/cl/relax_multi.cl
+68-65Lines changed: 68 additions & 65 deletions
Original file line number
Diff line number
Diff line change
@@ -342,8 +342,8 @@ __kernel void getMMFFf4(
342
342
// --- Evaluate bond-length stretching energy and forces
343
343
if(iG<ing){
344
344
// Bond stretching with proper MMFF parameters from bL[i] and bK[i]
345
-
E+=evalBond( h.xyz, l-bL[i], bK[i], &f1 ); fbs[i]-=f1; fa+=f1; // harmonic bond stretching, fa is force on center atom, fbs[i] is recoil force on i-th neighbor,
346
-
//E+= evalBond( h.xyz, l-1.198f, 40.f, &f1 ); fbs[i]-=f1; fa+=f1; // harmonic bond stretching, fa is force on center atom, fbs[i] is recoil force on i-th neighbor,
345
+
//E+= evalBond( h.xyz, l-bL[i], bK[i], &f1 ); fbs[i]-=f1; fa+=f1; // harmonic bond stretching, fa is force on center atom, fbs[i] is recoil force on i-th neighbor,
346
+
E+=evalBond( h.xyz, l-1.198f, 40.f, &f1 ); fbs[i]-=f1; fa+=f1; // harmonic bond stretching, fa is force on center atom, fbs[i] is recoil force on i-th neighbor,
347
347
348
348
// pi-pi alignment interaction
349
349
floatkpp=Kppi[i];
@@ -385,26 +385,26 @@ __kernel void getMMFFf4(
385
385
constintjnga=jng+i0a;
386
386
constfloat4hj=hs[j];
387
387
388
-
E+=evalAngleCosHalf( hi, hj, par.xy, par.z, &f1, &f2 ); // evaluate angular force and energy using cos(angle/2) formulation
389
-
fa-=f1+f2;
390
-
391
-
//if(bSubtractVdW)
392
-
{ // Remove non-bonded interactions from atoms that are bonded to common neighbor
393
-
float4REQi=REQKs[inga]; // non-bonding parameters of i-th neighbor
394
-
float4REQj=REQKs[jnga]; // non-bonding parameters of j-th neighbor
395
-
// combine non-bonding parameters of i-th and j-th neighbors using mixing rules
396
-
float4REQij;
397
-
REQij.x=REQi.x+REQj.x;
398
-
REQij.yz=REQi.yz*REQj.yz;
388
+
// E += evalAngleCosHalf( hi, hj, par.xy, par.z, &f1, &f2 ); // evaluate angular force and energy using cos(angle/2) formulation
389
+
// fa -= f1+f2;
390
+
391
+
// //if(bSubtractVdW)
392
+
// { // Remove non-bonded interactions from atoms that are bonded to common neighbor
393
+
// float4 REQi=REQKs[inga]; // non-bonding parameters of i-th neighbor
394
+
// float4 REQj=REQKs[jnga]; // non-bonding parameters of j-th neighbor
395
+
// // combine non-bonding parameters of i-th and j-th neighbors using mixing rules
396
+
// float4 REQij;
397
+
// REQij.x = REQi.x + REQj.x;
398
+
// REQij.yz = REQi.yz * REQj.yz;
399
399
400
-
float3dp= (hj.xyz/hj.w) - (hi.xyz/hi.w); // recover vector between i-th and j-th neighbors using stored vectos and inverse bond lengths, this should be faster than dp=apos[jngv].xyz-apos[ingv].xyz; from global memory
401
-
float4fij=getLJQH( dp, REQij, 1.0f ); // compute non-bonded interaction between i-th and j-th neighbors using Lennard-Jones and Coulomb interactions and Hydrogen bond correction
402
-
f1-=fij.xyz;
403
-
f2+=fij.xyz;
404
-
}
405
-
406
-
fbs[i]+=f1;
407
-
fbs[j]+=f2;
400
+
// float3 dp = (hj.xyz/hj.w) - (hi.xyz/hi.w); // recover vector between i-th and j-th neighbors using stored vectos and inverse bond lengths, this should be faster than dp=apos[jngv].xyz-apos[ingv].xyz; from global memory
401
+
// float4 fij = getLJQH( dp, REQij, 1.0f ); // compute non-bonded interaction between i-th and j-th neighbors using Lennard-Jones and Coulomb interactions and Hydrogen bond correction
0 commit comments