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
a8e21c5b
Commit
a8e21c5b
authored
Jul 30, 2015
by
peastman
Browse files
Merge pull request #1062 from jchodera/fix-tests-2
Fix issue with test type casting.
parents
9b345f2d
297da7b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
platforms/cuda/tests/TestCudaCustomIntegrator.cpp
platforms/cuda/tests/TestCudaCustomIntegrator.cpp
+1
-1
platforms/opencl/tests/TestOpenCLCustomIntegrator.cpp
platforms/opencl/tests/TestOpenCLCustomIntegrator.cpp
+1
-1
No files found.
platforms/cuda/tests/TestCudaCustomIntegrator.cpp
View file @
a8e21c5b
...
...
@@ -835,7 +835,7 @@ void testChangingGlobal() {
for
(
int
i
=
0
;
i
<
10
;
i
++
)
{
integrator
.
step
(
1
);
ASSERT_EQUAL_TOL
(
i
+
1
,
integrator
.
getGlobalVariable
(
0
),
1e-5
);
ASSERT_EQUAL_TOL
(
i
+
1
.0
,
integrator
.
getGlobalVariable
(
0
),
1e-5
);
vector
<
Vec3
>
values
;
integrator
.
getPerDofVariable
(
1
,
values
);
ASSERT_EQUAL_VEC
(
Vec3
(
i
+
1.5
,
i
+
1.5
,
i
+
1.5
),
values
[
0
],
1e-5
);
...
...
platforms/opencl/tests/TestOpenCLCustomIntegrator.cpp
View file @
a8e21c5b
...
...
@@ -835,7 +835,7 @@ void testChangingGlobal() {
for
(
int
i
=
0
;
i
<
10
;
i
++
)
{
integrator
.
step
(
1
);
ASSERT_EQUAL_TOL
(
i
+
1
,
integrator
.
getGlobalVariable
(
0
),
1e-5
);
ASSERT_EQUAL_TOL
(
i
+
1
.0
,
integrator
.
getGlobalVariable
(
0
),
1e-5
);
vector
<
Vec3
>
values
;
integrator
.
getPerDofVariable
(
1
,
values
);
ASSERT_EQUAL_VEC
(
Vec3
(
i
+
1.5
,
i
+
1.5
,
i
+
1.5
),
values
[
0
],
1e-5
);
...
...
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