Commit 39fd6eb6 authored by Peter Eastman's avatar Peter Eastman
Browse files

Bug fix

parent fee019b0
......@@ -143,7 +143,7 @@ void kLangevinUpdatePart2_kernel()
CM.z += mass * velocity.z;
#endif
float4 xPrime = make_float4(dt*velocity.x, dt*velocity.y, dt*velocity.z, 0);
float4 xPrime = make_float4(dt*velocity.x, dt*velocity.y, dt*velocity.z, cSim.pPosq[pos].w);
cSim.pPosq[pos] = xPrime;
pos += blockDim.x * gridDim.x;
......
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