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
4fd3493a
Commit
4fd3493a
authored
Jun 03, 2010
by
Peter Eastman
Browse files
Made Ewald test cases run slightly faster
parent
6b25abb3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
platforms/cuda/tests/TestCudaEwald.cpp
platforms/cuda/tests/TestCudaEwald.cpp
+1
-1
platforms/opencl/tests/TestOpenCLEwald.cpp
platforms/opencl/tests/TestOpenCLEwald.cpp
+1
-1
platforms/reference/tests/TestReferenceEwald.cpp
platforms/reference/tests/TestReferenceEwald.cpp
+1
-1
No files found.
platforms/cuda/tests/TestCudaEwald.cpp
View file @
4fd3493a
...
@@ -222,7 +222,7 @@ void testErrorTolerance(NonbondedForce::NonbondedMethod method) {
...
@@ -222,7 +222,7 @@ void testErrorTolerance(NonbondedForce::NonbondedMethod method) {
// For various values of the cutoff and error tolerance, see if the actual error is reasonable.
// For various values of the cutoff and error tolerance, see if the actual error is reasonable.
for
(
double
cutoff
=
1.0
;
cutoff
<
boxWidth
/
2
;
cutoff
+
=
0
.2
)
{
for
(
double
cutoff
=
1.0
;
cutoff
<
boxWidth
/
2
;
cutoff
*
=
1
.2
)
{
force
->
setCutoffDistance
(
cutoff
);
force
->
setCutoffDistance
(
cutoff
);
vector
<
Vec3
>
refForces
;
vector
<
Vec3
>
refForces
;
double
norm
=
0.0
;
double
norm
=
0.0
;
...
...
platforms/opencl/tests/TestOpenCLEwald.cpp
View file @
4fd3493a
...
@@ -221,7 +221,7 @@ void testErrorTolerance(NonbondedForce::NonbondedMethod method) {
...
@@ -221,7 +221,7 @@ void testErrorTolerance(NonbondedForce::NonbondedMethod method) {
// For various values of the cutoff and error tolerance, see if the actual error is reasonable.
// For various values of the cutoff and error tolerance, see if the actual error is reasonable.
for
(
double
cutoff
=
1.0
;
cutoff
<
boxWidth
/
2
;
cutoff
+
=
0
.2
)
{
for
(
double
cutoff
=
1.0
;
cutoff
<
boxWidth
/
2
;
cutoff
*
=
1
.2
)
{
force
->
setCutoffDistance
(
cutoff
);
force
->
setCutoffDistance
(
cutoff
);
vector
<
Vec3
>
refForces
;
vector
<
Vec3
>
refForces
;
double
norm
=
0.0
;
double
norm
=
0.0
;
...
...
platforms/reference/tests/TestReferenceEwald.cpp
View file @
4fd3493a
...
@@ -325,7 +325,7 @@ void testErrorTolerance(NonbondedForce::NonbondedMethod method) {
...
@@ -325,7 +325,7 @@ void testErrorTolerance(NonbondedForce::NonbondedMethod method) {
// For various values of the cutoff and error tolerance, see if the actual error is reasonable.
// For various values of the cutoff and error tolerance, see if the actual error is reasonable.
for
(
double
cutoff
=
1.0
;
cutoff
<
boxWidth
/
2
;
cutoff
+
=
0
.2
)
{
for
(
double
cutoff
=
1.0
;
cutoff
<
boxWidth
/
2
;
cutoff
*
=
1
.2
)
{
force
->
setCutoffDistance
(
cutoff
);
force
->
setCutoffDistance
(
cutoff
);
vector
<
Vec3
>
refForces
;
vector
<
Vec3
>
refForces
;
double
norm
=
0.0
;
double
norm
=
0.0
;
...
...
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