Commit f144dee2 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed error in #2416

parent 2d7fb355
...@@ -273,9 +273,11 @@ extern "C" __global__ void findBlocksWithInteractions(real4 periodicBoxSize, rea ...@@ -273,9 +273,11 @@ extern "C" __global__ void findBlocksWithInteractions(real4 periodicBoxSize, rea
// Loop over any blocks we identified as potentially containing neighbors. // Loop over any blocks we identified as potentially containing neighbors.
int includeBlockFlags = BALLOT(includeBlock2); int includeBlockFlags = BALLOT(includeBlock2);
int forceIncludeFlags = BALLOT(forceInclude);
while (includeBlockFlags != 0) { while (includeBlockFlags != 0) {
int i = __ffs(includeBlockFlags)-1; int i = __ffs(includeBlockFlags)-1;
includeBlockFlags &= includeBlockFlags-1; includeBlockFlags &= includeBlockFlags-1;
forceInclude = (forceIncludeFlags>>i) & 1;
unsigned short y = (unsigned short) sortedBlocks[block2Base+i].y; unsigned short y = (unsigned short) sortedBlocks[block2Base+i].y;
// Check each atom in block Y for interactions. // Check each atom in block Y for interactions.
......
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