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
1de311c9
Commit
1de311c9
authored
Sep 26, 2016
by
Peter Eastman
Browse files
Fixed mistake in test case
parent
9908d249
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/TestCustomIntegrator.h
tests/TestCustomIntegrator.h
+2
-2
No files found.
tests/TestCustomIntegrator.h
View file @
1de311c9
...
@@ -881,7 +881,7 @@ void testChangeDT() {
...
@@ -881,7 +881,7 @@ void testChangeDT() {
ASSERT_EQUAL_TOL
(
dt
,
integrator
.
getGlobalVariable
(
0
),
1e-5
);
ASSERT_EQUAL_TOL
(
dt
,
integrator
.
getGlobalVariable
(
0
),
1e-5
);
vector
<
Vec3
>
values
;
vector
<
Vec3
>
values
;
integrator
.
getPerDofVariable
(
0
,
values
);
integrator
.
getPerDofVariable
(
0
,
values
);
ASSERT_EQUAL_
TOL
(
dt
,
integrator
.
getGlobalVariable
(
0
)
,
1e-5
);
ASSERT_EQUAL_
VEC
(
Vec3
(
dt
,
dt
,
dt
),
values
[
0
]
,
1e-5
);
}
}
integrator
.
setStepSize
(
1.0
);
integrator
.
setStepSize
(
1.0
);
for
(
int
i
=
0
;
i
<
5
;
i
++
)
{
for
(
int
i
=
0
;
i
<
5
;
i
++
)
{
...
@@ -891,7 +891,7 @@ void testChangeDT() {
...
@@ -891,7 +891,7 @@ void testChangeDT() {
ASSERT_EQUAL_TOL
(
dt
,
integrator
.
getGlobalVariable
(
0
),
1e-5
);
ASSERT_EQUAL_TOL
(
dt
,
integrator
.
getGlobalVariable
(
0
),
1e-5
);
vector
<
Vec3
>
values
;
vector
<
Vec3
>
values
;
integrator
.
getPerDofVariable
(
0
,
values
);
integrator
.
getPerDofVariable
(
0
,
values
);
ASSERT_EQUAL_
TOL
(
dt
,
integrator
.
getGlobalVariable
(
0
)
,
1e-5
);
ASSERT_EQUAL_
VEC
(
Vec3
(
dt
,
dt
,
dt
),
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