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
4a401e78
Commit
4a401e78
authored
Apr 23, 2010
by
Peter Eastman
Browse files
Fixed threading bug in CM motion removal
parent
39fd6eb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
platforms/opencl/src/kernels/removeCM.cl
platforms/opencl/src/kernels/removeCM.cl
+1
-1
No files found.
platforms/opencl/src/kernels/removeCM.cl
View file @
4a401e78
...
@@ -92,8 +92,8 @@ __kernel void removeCenterOfMassMomentum(int numAtoms, __global float4* velm, __
...
@@ -92,8 +92,8 @@ __kernel void removeCenterOfMassMomentum(int numAtoms, __global float4* velm, __
barrier
(
CLK_LOCAL_MEM_FENCE
)
;
barrier
(
CLK_LOCAL_MEM_FENCE
)
;
if
(
thread
<
2
)
if
(
thread
<
2
)
temp[thread]
+=
temp[thread+2]
;
temp[thread]
+=
temp[thread+2]
;
barrier
(
CLK_LOCAL_MEM_FENCE
)
;
#
endif
#
endif
barrier
(
CLK_LOCAL_MEM_FENCE
)
;
cm
=
(
temp[0]+temp[1]
)
*INVERSE_TOTAL_MASS
;
cm
=
(
temp[0]+temp[1]
)
*INVERSE_TOTAL_MASS
;
//
Now
remove
the
center
of
mass
velocity
from
each
atom.
//
Now
remove
the
center
of
mass
velocity
from
each
atom.
...
...
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