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
99bca8c1
"...amoeba/platforms/common/src/kernels/hippoFixedField.cc" did not exist on "b53c0f105dac6e177b9ae368452d4176c28842aa"
Commit
99bca8c1
authored
Nov 05, 2012
by
Peter Eastman
Browse files
Fixed compilation errors on Windows
parent
7c522d60
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
platforms/opencl/tests/TestOpenCLRandom.cpp
platforms/opencl/tests/TestOpenCLRandom.cpp
+1
-1
platforms/reference/tests/TestReferenceRandom.cpp
platforms/reference/tests/TestReferenceRandom.cpp
+1
-1
No files found.
platforms/opencl/tests/TestOpenCLRandom.cpp
View file @
99bca8c1
...
...
@@ -127,7 +127,7 @@ void testRandomVelocities() {
ke
+=
0.5
*
system
.
getParticleMass
(
i
)
*
v
.
dot
(
v
);
}
double
expected
=
0.5
*
(
numParticles
*
3
-
system
.
getNumConstraints
())
*
BOLTZ
*
temperture
;
ASSERT_USUALLY_EQUAL_TOL
(
expected
,
ke
,
4
/
sqrt
(
numParticles
));
ASSERT_USUALLY_EQUAL_TOL
(
expected
,
ke
,
4
/
sqrt
(
(
double
)
numParticles
));
}
int
main
(
int
argc
,
char
*
argv
[])
{
...
...
platforms/reference/tests/TestReferenceRandom.cpp
View file @
99bca8c1
...
...
@@ -109,7 +109,7 @@ void testRandomVelocities() {
ke
+=
0.5
*
system
.
getParticleMass
(
i
)
*
v
.
dot
(
v
);
}
double
expected
=
0.5
*
(
numParticles
*
3
-
system
.
getNumConstraints
())
*
BOLTZ
*
temperture
;
ASSERT_USUALLY_EQUAL_TOL
(
expected
,
ke
,
4
/
sqrt
(
numParticles
));
ASSERT_USUALLY_EQUAL_TOL
(
expected
,
ke
,
4
/
sqrt
(
(
double
)
numParticles
));
}
int
main
()
{
...
...
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