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

Don't test for interaction flags on platforms where we don't use them.

parent dec115db
...@@ -553,6 +553,7 @@ void testBlockInteractions(bool periodic) { ...@@ -553,6 +553,7 @@ void testBlockInteractions(bool periodic) {
// Check the interaction flags. // Check the interaction flags.
if (clcontext.getSIMDWidth() == 32) {
unsigned int flags = interactionFlags[i]; unsigned int flags = interactionFlags[i];
for (int atom2 = 0; atom2 < 32; atom2++) { for (int atom2 = 0; atom2 < 32; atom2++) {
if ((flags & 1) == 0) { if ((flags & 1) == 0) {
...@@ -573,6 +574,7 @@ void testBlockInteractions(bool periodic) { ...@@ -573,6 +574,7 @@ void testBlockInteractions(bool periodic) {
flags >>= 1; flags >>= 1;
} }
} }
}
// Check the tiles that did not have interactions to make sure all atoms are beyond the cutoff. // Check the tiles that did not have interactions to make sure all atoms are beyond the cutoff.
......
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