"wrappers/vscode:/vscode.git/clone" did not exist on "ac57dde42f6f5cb8cf84452a2995fff3ae29be76"
Commit 0f546f7d authored by Jing Huang's avatar Jing Huang
Browse files

Fix a bug in DrudeParticleForce on the anisotropy in the aniso34 direction.

parent 73a59c33
......@@ -32,7 +32,7 @@ if (k1 != 0) {
// Compute the second anisotropic force.
if (k2 != 0) {
real3 dir = make_real3(pos3.x-pos4.x, pos3.y-pos4.y, pos3.z-pos4.z);
real3 dir = make_real3(pos4.x-pos5.x, pos4.y-pos5.y, pos4.z-pos5.z);
real invDist = RSQRT(dot(dir, dir));
dir *= invDist;
real rprime = dot(dir, delta);
......
......@@ -32,7 +32,7 @@ if (k1 != 0) {
// Compute the second anisotropic force.
if (k2 != 0) {
real4 dir = (real4) (pos3.xyz-pos4.xyz, 0);
real4 dir = (real4) (pos4.xyz-pos5.xyz, 0);
real invDist = RSQRT(dot(dir, dir));
dir *= invDist;
real rprime = dot(dir, delta);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment