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
297da7b2
"vscode:/vscode.git/clone" did not exist on "8d206abc612dfc694648b81a69c3fce7c0e17d59"
Commit
297da7b2
authored
Jul 29, 2015
by
John Chodera (MSKCC)
Browse files
Fix issue with test type casting.
parent
9b345f2d
Changes
2
Show 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 @
297da7b2
...
@@ -835,7 +835,7 @@ void testChangingGlobal() {
...
@@ -835,7 +835,7 @@ void testChangingGlobal() {
for
(
int
i
=
0
;
i
<
10
;
i
++
)
{
for
(
int
i
=
0
;
i
<
10
;
i
++
)
{
integrator
.
step
(
1
);
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
;
vector
<
Vec3
>
values
;
integrator
.
getPerDofVariable
(
1
,
values
);
integrator
.
getPerDofVariable
(
1
,
values
);
ASSERT_EQUAL_VEC
(
Vec3
(
i
+
1.5
,
i
+
1.5
,
i
+
1.5
),
values
[
0
],
1e-5
);
ASSERT_EQUAL_VEC
(
Vec3
(
i
+
1.5
,
i
+
1.5
,
i
+
1.5
),
values
[
0
],
1e-5
);
...
...
platforms/opencl/tests/TestOpenCLCustomIntegrator.cpp
View file @
297da7b2
...
@@ -835,7 +835,7 @@ void testChangingGlobal() {
...
@@ -835,7 +835,7 @@ void testChangingGlobal() {
for
(
int
i
=
0
;
i
<
10
;
i
++
)
{
for
(
int
i
=
0
;
i
<
10
;
i
++
)
{
integrator
.
step
(
1
);
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
;
vector
<
Vec3
>
values
;
integrator
.
getPerDofVariable
(
1
,
values
);
integrator
.
getPerDofVariable
(
1
,
values
);
ASSERT_EQUAL_VEC
(
Vec3
(
i
+
1.5
,
i
+
1.5
,
i
+
1.5
),
values
[
0
],
1e-5
);
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