Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
f144dee2
Commit
f144dee2
authored
Oct 03, 2019
by
Peter Eastman
Browse files
Fixed error in #2416
parent
2d7fb355
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
platforms/cuda/src/kernels/findInteractingBlocks.cu
platforms/cuda/src/kernels/findInteractingBlocks.cu
+2
-0
No files found.
platforms/cuda/src/kernels/findInteractingBlocks.cu
View file @
f144dee2
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment