Commit b540b4b8 authored by peastman's avatar peastman
Browse files

Merge pull request #472 from peastman/master

Fixed a crash with virtual sites in double precision mode
parents dbefb1be 3bf0edb4
......@@ -116,7 +116,7 @@ __kernel void computeVirtualSites(__global real4* restrict posq,
#pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable
void addForce(int index, float4 f, __global long* longForce) {
void addForce(int index, real4 f, __global long* longForce) {
atom_add(&longForce[index], (long) (f.x*0x100000000));
atom_add(&longForce[index+PADDED_NUM_ATOMS], (long) (f.y*0x100000000));
atom_add(&longForce[index+2*PADDED_NUM_ATOMS], (long) (f.z*0x100000000));
......
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