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
6f7c46b4
"platforms/opencl/include/OpenCLKernels.h" did not exist on "925b00ec7ee5ba38e3a72f1da8a88df5a3d51bd5"
Commit
6f7c46b4
authored
Mar 25, 2013
by
Peter Eastman
Browse files
Fixed error in mixed precision mode
parent
abf9bd6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
platforms/opencl/src/kernels/andersenThermostat.cl
platforms/opencl/src/kernels/andersenThermostat.cl
+2
-2
No files found.
platforms/opencl/src/kernels/andersenThermostat.cl
View file @
6f7c46b4
...
...
@@ -4,8 +4,8 @@
__kernel
void
applyAndersenThermostat
(
float
collisionFrequency,
float
kT,
__global
mixed4*
velm,
__global
const
mixed2*
restrict
stepSize,
__global
const
float4*
restrict
random,
unsigned
int
randomIndex,
__global
const
int*
restrict
atomGroups
)
{
float
collisionProbability
=
1.0f-
EXP
(
-collisionFrequency*stepSize[0].y
)
;
float
randomRange
=
erf
(
collisionProbability/
SQRT
(
2.0f
))
;
float
collisionProbability
=
(
float
)
(
1.0f-
exp
(
-collisionFrequency*stepSize[0].y
)
)
;
float
randomRange
=
(
float
)
erf
(
collisionProbability/
exp
(
2.0f
))
;
for
(
int
index
=
get_global_id
(
0
)
; index < NUM_ATOMS; index += get_global_size(0)) {
mixed4
velocity
=
velm[index]
;
float4
selectRand
=
random[randomIndex+atomGroups[index]]
;
...
...
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