Commit ce5559f2 authored by peastman's avatar peastman
Browse files

Fixed uninitialized memory error

parent b6fcfbd5
......@@ -338,6 +338,11 @@ void CpuGBSAOBCForce::threadComputeForce(ThreadPool& threads, int threadIndex) {
atomz[i] = posq[4*atomIndex+2];
blockMask[i] = 0xFFFFFFFF;
}
for (int i = numInBlock; i < 4; i++) {
atomx[i] = 0.0f;
atomy[i] = 0.0f;
atomz[i] = 0.0f;
}
fvec4 offsetRadiusI(atomRadius);
fvec4 x(atomx);
fvec4 y(atomy);
......
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