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
cfa7ab82
Commit
cfa7ab82
authored
Jan 10, 2017
by
Peter Eastman
Browse files
Fixed bug in building neighbor list
parent
06c82bc0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
platforms/cuda/src/kernels/findInteractingBlocks.cu
platforms/cuda/src/kernels/findInteractingBlocks.cu
+1
-1
platforms/opencl/src/kernels/findInteractingBlocks.cl
platforms/opencl/src/kernels/findInteractingBlocks.cl
+1
-1
No files found.
platforms/cuda/src/kernels/findInteractingBlocks.cu
View file @
cfa7ab82
...
@@ -29,7 +29,7 @@ extern "C" __global__ void findBlockBounds(int numAtoms, real4 periodicBoxSize,
...
@@ -29,7 +29,7 @@ extern "C" __global__ void findBlockBounds(int numAtoms, real4 periodicBoxSize,
real4
blockSize
=
0.5
f
*
(
maxPos
-
minPos
);
real4
blockSize
=
0.5
f
*
(
maxPos
-
minPos
);
real4
center
=
0.5
f
*
(
maxPos
+
minPos
);
real4
center
=
0.5
f
*
(
maxPos
+
minPos
);
center
.
w
=
0
;
center
.
w
=
0
;
for
(
int
i
=
base
+
1
;
i
<
last
;
i
++
)
{
for
(
int
i
=
base
;
i
<
last
;
i
++
)
{
pos
=
posq
[
i
];
pos
=
posq
[
i
];
real4
delta
=
posq
[
i
]
-
center
;
real4
delta
=
posq
[
i
]
-
center
;
#ifdef USE_PERIODIC
#ifdef USE_PERIODIC
...
...
platforms/opencl/src/kernels/findInteractingBlocks.cl
View file @
cfa7ab82
...
@@ -29,7 +29,7 @@ __kernel void findBlockBounds(int numAtoms, real4 periodicBoxSize, real4 invPeri
...
@@ -29,7 +29,7 @@ __kernel void findBlockBounds(int numAtoms, real4 periodicBoxSize, real4 invPeri
real4
blockSize
=
0.5f*
(
maxPos-minPos
)
;
real4
blockSize
=
0.5f*
(
maxPos-minPos
)
;
real4
center
=
0.5f*
(
maxPos+minPos
)
;
real4
center
=
0.5f*
(
maxPos+minPos
)
;
center.w
=
0
;
center.w
=
0
;
for
(
int
i
=
base
+1
; i < last; i++) {
for
(
int
i
=
base
; i < last; i++) {
pos
=
posq[i]
;
pos
=
posq[i]
;
real4
delta
=
posq[i]-center
;
real4
delta
=
posq[i]-center
;
#
ifdef
USE_PERIODIC
#
ifdef
USE_PERIODIC
...
...
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