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
677b9f1a
Commit
677b9f1a
authored
Nov 07, 2018
by
peastman
Browse files
Fixes to PPC support
parent
cdfc47e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
plugins/cpupme/CMakeLists.txt
plugins/cpupme/CMakeLists.txt
+6
-6
tests/TestSystem.cpp
tests/TestSystem.cpp
+1
-1
No files found.
plugins/cpupme/CMakeLists.txt
View file @
677b9f1a
...
@@ -56,13 +56,13 @@ FOREACH(subdir ${OPENMM_SOURCE_SUBDIRS})
...
@@ -56,13 +56,13 @@ FOREACH(subdir ${OPENMM_SOURCE_SUBDIRS})
ENDFOREACH
(
subdir
)
ENDFOREACH
(
subdir
)
INCLUDE_DIRECTORIES
(
BEFORE
${
CMAKE_CURRENT_SOURCE_DIR
}
/src
)
INCLUDE_DIRECTORIES
(
BEFORE
${
CMAKE_CURRENT_SOURCE_DIR
}
/src
)
IF
(
NOT MSVC
)
IF
(
NOT MSVC
)
IF
(
ANDROID OR PNACL
)
IF
(
X86
)
SET_SOURCE_FILES_PROPERTIES
(
${
SOURCE_FILES
}
PROPERTIES COMPILE_FLAGS
""
)
ELSE
(
ANDROID OR PNACL
)
SET_SOURCE_FILES_PROPERTIES
(
${
SOURCE_FILES
}
PROPERTIES COMPILE_FLAGS
"-msse4.1"
)
SET_SOURCE_FILES_PROPERTIES
(
${
SOURCE_FILES
}
PROPERTIES COMPILE_FLAGS
"-msse4.1"
)
ENDIF
(
ANDROID OR PNACL
)
ELSE
()
ENDIF
(
NOT MSVC
)
SET_SOURCE_FILES_PROPERTIES
(
${
SOURCE_FILES
}
PROPERTIES COMPILE_FLAGS
""
)
ENDIF
()
ENDIF
()
# Include FFTW related files.
# Include FFTW related files.
INCLUDE_DIRECTORIES
(
${
FFTW_INCLUDES
}
)
INCLUDE_DIRECTORIES
(
${
FFTW_INCLUDES
}
)
...
...
tests/TestSystem.cpp
View file @
677b9f1a
...
@@ -54,7 +54,7 @@ void testCreateSystem() {
...
@@ -54,7 +54,7 @@ void testCreateSystem() {
ASSERT_EQUAL
(
numParticles
,
system
.
getNumParticles
());
ASSERT_EQUAL
(
numParticles
,
system
.
getNumParticles
());
for
(
int
i
=
0
;
i
<
numParticles
;
i
++
)
{
for
(
int
i
=
0
;
i
<
numParticles
;
i
++
)
{
double
mass
=
(
i
==
5
?
100.0
:
1.0
+
0.1
*
i
);
double
mass
=
(
i
==
5
?
100.0
:
1.0
+
0.1
*
i
);
ASSERT_EQUAL
(
mass
,
system
.
getParticleMass
(
i
));
ASSERT_EQUAL
_TOL
(
mass
,
system
.
getParticleMass
(
i
)
,
1e-15
);
}
}
// Test adding, removing, and modifying constraints.
// Test adding, removing, and modifying constraints.
...
...
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