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
34bd3ee9
"plugins/amoeba/vscode:/vscode.git/clone" did not exist on "1b5ee8f903ba0cd545d5e4e7616eca9f09b91b92"
Commit
34bd3ee9
authored
Feb 10, 2012
by
Peter Eastman
Browse files
Fixed bug applying constraints for CustomIntegrator
parent
cf7a8bcb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
platforms/opencl/src/kernels/customIntegrator.cl
platforms/opencl/src/kernels/customIntegrator.cl
+1
-1
No files found.
platforms/opencl/src/kernels/customIntegrator.cl
View file @
34bd3ee9
...
@@ -15,7 +15,7 @@ __kernel void computeSum(__global const float* restrict sumBuffer, __global floa
...
@@ -15,7 +15,7 @@ __kernel void computeSum(__global const float* restrict sumBuffer, __global floa
}
}
__kernel
void
applyPositionDeltas
(
__global
float4*
restrict
posq,
__global
float4*
restrict
posDelta
)
{
__kernel
void
applyPositionDeltas
(
__global
float4*
restrict
posq,
__global
float4*
restrict
posDelta
)
{
for
(
unsigned
int
index
=
get_lo
c
al_id
(
0
)
; index < NUM_ATOMS; index += get_global_size(0)) {
for
(
unsigned
int
index
=
get_
g
lo
b
al_id
(
0
)
; index < NUM_ATOMS; index += get_global_size(0)) {
float4
position
=
posq[index]
;
float4
position
=
posq[index]
;
position.xyz
+=
posDelta[index].xyz
;
position.xyz
+=
posDelta[index].xyz
;
posq[index]
=
position
;
posq[index]
=
position
;
...
...
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