"vscode:/vscode.git/clone" did not exist on "ebef35a4f5ba2879ecb08545b0c534a498913c08"
Commit 9425210a authored by Mark Friedrichs's avatar Mark Friedrichs
Browse files

Applied rev 3035 fix for OpenCL OBC Born to all code blocks

parent a955feb1
......@@ -176,7 +176,7 @@ __kernel void computeBornSum(
float ratio = LOG(u_ij * RECIP(l_ij));
bornSum += l_ij - u_ij + (0.50f*invR*ratio) + 0.25f*(r*(u_ij2-l_ij2) +
(params2.y*params2.y*invR)*(l_ij2-u_ij2));
if (params1.x < params2.x-r)
if (params1.x < params2.y-r)
bornSum += 2.0f*(RECIP(params1.x)-l_ij);
}
float rScaledRadiusI = r+params1.y;
......@@ -235,7 +235,7 @@ __kernel void computeBornSum(
float ratio = LOG(u_ij * RECIP(l_ij));
bornSum += l_ij - u_ij + (0.50f*invR*ratio) + 0.25f*(r*(u_ij2-l_ij2) +
(params2.y*params2.y*invR)*(l_ij2-u_ij2));
if (params1.x < params2.x-r)
if (params1.x < params2.y-r)
bornSum += 2.0f*(RECIP(params1.x)-l_ij);
}
float rScaledRadiusI = r+params1.y;
......
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