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
e94afeaf
Commit
e94afeaf
authored
Mar 13, 2014
by
peastman
Browse files
Merge pull request #370 from peastman/master
Fixed compilation errors on Windows
parents
4e2c9968
77cec3f7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
platforms/cuda/tests/TestCudaCustomCompoundBondForce.cpp
platforms/cuda/tests/TestCudaCustomCompoundBondForce.cpp
+4
-1
platforms/opencl/tests/TestOpenCLCustomCompoundBondForce.cpp
platforms/opencl/tests/TestOpenCLCustomCompoundBondForce.cpp
+4
-1
platforms/reference/tests/TestReferenceCustomCompoundBondForce.cpp
.../reference/tests/TestReferenceCustomCompoundBondForce.cpp
+4
-1
No files found.
platforms/cuda/tests/TestCudaCustomCompoundBondForce.cpp
View file @
e94afeaf
...
@@ -33,6 +33,9 @@
...
@@ -33,6 +33,9 @@
* This tests the CUDA implementation of CustomCompoundBondForce.
* This tests the CUDA implementation of CustomCompoundBondForce.
*/
*/
#ifdef WIN32
#define _USE_MATH_DEFINES // Needed to get M_PI
#endif
#include "openmm/internal/AssertionUtilities.h"
#include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h"
#include "openmm/Context.h"
#include "CudaPlatform.h"
#include "CudaPlatform.h"
...
@@ -313,7 +316,7 @@ void testMultipleBonds() {
...
@@ -313,7 +316,7 @@ void testMultipleBonds() {
parameters
[
0
]
=
1.0
;
parameters
[
0
]
=
1.0
;
parameters
[
1
]
=
1.0
;
parameters
[
1
]
=
1.0
;
parameters
[
2
]
=
2
*
M_PI
/
3
;
parameters
[
2
]
=
2
*
M_PI
/
3
;
parameters
[
3
]
=
sqrt
(
3
)
/
2
;
parameters
[
3
]
=
sqrt
(
3
.0
)
/
2
;
vector
<
int
>
particles0
(
3
);
vector
<
int
>
particles0
(
3
);
particles0
[
0
]
=
0
;
particles0
[
0
]
=
0
;
particles0
[
1
]
=
1
;
particles0
[
1
]
=
1
;
...
...
platforms/opencl/tests/TestOpenCLCustomCompoundBondForce.cpp
View file @
e94afeaf
...
@@ -33,6 +33,9 @@
...
@@ -33,6 +33,9 @@
* This tests the OpenCL implementation of CustomCompoundBondForce.
* This tests the OpenCL implementation of CustomCompoundBondForce.
*/
*/
#ifdef WIN32
#define _USE_MATH_DEFINES // Needed to get M_PI
#endif
#include "openmm/internal/AssertionUtilities.h"
#include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h"
#include "openmm/Context.h"
#include "OpenCLPlatform.h"
#include "OpenCLPlatform.h"
...
@@ -313,7 +316,7 @@ void testMultipleBonds() {
...
@@ -313,7 +316,7 @@ void testMultipleBonds() {
parameters
[
0
]
=
1.0
;
parameters
[
0
]
=
1.0
;
parameters
[
1
]
=
1.0
;
parameters
[
1
]
=
1.0
;
parameters
[
2
]
=
2
*
M_PI
/
3
;
parameters
[
2
]
=
2
*
M_PI
/
3
;
parameters
[
3
]
=
sqrt
(
3
)
/
2
;
parameters
[
3
]
=
sqrt
(
3
.0
)
/
2
;
vector
<
int
>
particles0
(
3
);
vector
<
int
>
particles0
(
3
);
particles0
[
0
]
=
0
;
particles0
[
0
]
=
0
;
particles0
[
1
]
=
1
;
particles0
[
1
]
=
1
;
...
...
platforms/reference/tests/TestReferenceCustomCompoundBondForce.cpp
View file @
e94afeaf
...
@@ -33,6 +33,9 @@
...
@@ -33,6 +33,9 @@
* This tests the reference implementation of CustomCompoundBondForce.
* This tests the reference implementation of CustomCompoundBondForce.
*/
*/
#ifdef WIN32
#define _USE_MATH_DEFINES // Needed to get M_PI
#endif
#include "openmm/internal/AssertionUtilities.h"
#include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h"
#include "openmm/Context.h"
#include "ReferencePlatform.h"
#include "ReferencePlatform.h"
...
@@ -284,7 +287,7 @@ void testMultipleBonds() {
...
@@ -284,7 +287,7 @@ void testMultipleBonds() {
parameters
[
0
]
=
1.0
;
parameters
[
0
]
=
1.0
;
parameters
[
1
]
=
1.0
;
parameters
[
1
]
=
1.0
;
parameters
[
2
]
=
2
*
M_PI
/
3
;
parameters
[
2
]
=
2
*
M_PI
/
3
;
parameters
[
3
]
=
sqrt
(
3
)
/
2
;
parameters
[
3
]
=
sqrt
(
3
.0
)
/
2
;
vector
<
int
>
particles0
(
3
);
vector
<
int
>
particles0
(
3
);
particles0
[
0
]
=
0
;
particles0
[
0
]
=
0
;
particles0
[
1
]
=
1
;
particles0
[
1
]
=
1
;
...
...
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