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
79460bf6
Unverified
Commit
79460bf6
authored
Mar 03, 2021
by
Peter Eastman
Committed by
GitHub
Mar 03, 2021
Browse files
Made some flaky tests a little less flaky (#3048)
parent
b2dacffd
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
plugins/drude/tests/TestDrudeLangevinIntegrator.h
plugins/drude/tests/TestDrudeLangevinIntegrator.h
+3
-3
plugins/rpmd/platforms/cuda/tests/TestCudaRpmd.cpp
plugins/rpmd/platforms/cuda/tests/TestCudaRpmd.cpp
+1
-1
plugins/rpmd/platforms/opencl/tests/TestOpenCLRpmd.cpp
plugins/rpmd/platforms/opencl/tests/TestOpenCLRpmd.cpp
+1
-1
plugins/rpmd/platforms/reference/tests/TestReferenceRpmd.cpp
plugins/rpmd/platforms/reference/tests/TestReferenceRpmd.cpp
+1
-1
No files found.
plugins/drude/tests/TestDrudeLangevinIntegrator.h
View file @
79460bf6
...
@@ -158,7 +158,7 @@ void testWater() {
...
@@ -158,7 +158,7 @@ void testWater() {
// Compute the internal and center of mass temperatures.
// Compute the internal and center of mass temperatures.
double
ke
=
0
;
double
ke
=
0
;
int
numSteps
=
4
000
;
int
numSteps
=
8
000
;
for
(
int
i
=
0
;
i
<
numSteps
;
i
++
)
{
for
(
int
i
=
0
;
i
<
numSteps
;
i
++
)
{
integ
.
step
(
1
);
integ
.
step
(
1
);
ke
+=
context
.
getState
(
State
::
Energy
).
getKineticEnergy
();
ke
+=
context
.
getState
(
State
::
Energy
).
getKineticEnergy
();
...
@@ -281,8 +281,8 @@ void testInitialTemperature() {
...
@@ -281,8 +281,8 @@ void testInitialTemperature() {
}
}
double
comTemperature
=
(
2
*
comKineticEnergy
/
(
nDoF
*
BOLTZ
));
double
comTemperature
=
(
2
*
comKineticEnergy
/
(
nDoF
*
BOLTZ
));
double
relTemperature
=
(
2
*
relKineticEnergy
/
(
nDoF
*
BOLTZ
));
double
relTemperature
=
(
2
*
relKineticEnergy
/
(
nDoF
*
BOLTZ
));
ASSERT_USUALLY_EQUAL_TOL
(
targetTemperature
,
comTemperature
,
0.0
1
);
ASSERT_USUALLY_EQUAL_TOL
(
targetTemperature
,
comTemperature
,
0.0
2
);
ASSERT_USUALLY_EQUAL_TOL
(
drudeTemperature
,
relTemperature
,
0.0
1
);
ASSERT_USUALLY_EQUAL_TOL
(
drudeTemperature
,
relTemperature
,
0.0
2
);
}
}
void
setupKernels
(
int
argc
,
char
*
argv
[]);
void
setupKernels
(
int
argc
,
char
*
argv
[]);
...
...
plugins/rpmd/platforms/cuda/tests/TestCudaRpmd.cpp
View file @
79460bf6
...
@@ -527,7 +527,7 @@ void testWithBarostat() {
...
@@ -527,7 +527,7 @@ void testWithBarostat() {
// Check the temperature.
// Check the temperature.
const
int
numSteps
=
5
00
;
const
int
numSteps
=
10
00
;
integ
.
step
(
100
);
integ
.
step
(
100
);
vector
<
double
>
ke
(
numCopies
,
0.0
);
vector
<
double
>
ke
(
numCopies
,
0.0
);
for
(
int
i
=
0
;
i
<
numSteps
;
i
++
)
{
for
(
int
i
=
0
;
i
<
numSteps
;
i
++
)
{
...
...
plugins/rpmd/platforms/opencl/tests/TestOpenCLRpmd.cpp
View file @
79460bf6
...
@@ -528,7 +528,7 @@ void testWithBarostat() {
...
@@ -528,7 +528,7 @@ void testWithBarostat() {
// Check the temperature.
// Check the temperature.
const
int
numSteps
=
5
00
;
const
int
numSteps
=
10
00
;
integ
.
step
(
100
);
integ
.
step
(
100
);
vector
<
double
>
ke
(
numCopies
,
0.0
);
vector
<
double
>
ke
(
numCopies
,
0.0
);
for
(
int
i
=
0
;
i
<
numSteps
;
i
++
)
{
for
(
int
i
=
0
;
i
<
numSteps
;
i
++
)
{
...
...
plugins/rpmd/platforms/reference/tests/TestReferenceRpmd.cpp
View file @
79460bf6
...
@@ -411,7 +411,7 @@ void testWithBarostat() {
...
@@ -411,7 +411,7 @@ void testWithBarostat() {
// Check the temperature.
// Check the temperature.
const
int
numSteps
=
5
00
;
const
int
numSteps
=
10
00
;
integ
.
step
(
100
);
integ
.
step
(
100
);
vector
<
double
>
ke
(
numCopies
,
0.0
);
vector
<
double
>
ke
(
numCopies
,
0.0
);
for
(
int
i
=
0
;
i
<
numSteps
;
i
++
)
{
for
(
int
i
=
0
;
i
<
numSteps
;
i
++
)
{
...
...
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