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
49cb91c5
Commit
49cb91c5
authored
Jul 19, 2013
by
peastman
Browse files
Merge pull request #64 from peastman/bugs
Minor bug fixes
parents
fdce64f7
1c6bea76
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
examples/testInstallation.py
examples/testInstallation.py
+1
-0
plugins/cpupme/src/CpuPmeKernels.cpp
plugins/cpupme/src/CpuPmeKernels.cpp
+2
-2
plugins/cpupme/tests/TestCpuPme.cpp
plugins/cpupme/tests/TestCpuPme.cpp
+4
-0
No files found.
examples/testInstallation.py
View file @
49cb91c5
...
...
@@ -30,6 +30,7 @@ for i in range(numPlatforms):
simulation
=
Simulation
(
pdb
.
topology
,
system
,
integrator
,
platform
)
simulation
.
context
.
setPositions
(
pdb
.
positions
)
forces
[
i
]
=
simulation
.
context
.
getState
(
getForces
=
True
).
getForces
()
del
simulation
print
"- Successfully computed forces"
except
:
print
"- Error computing forces with"
,
platform
.
getName
(),
"platform"
...
...
plugins/cpupme/src/CpuPmeKernels.cpp
View file @
49cb91c5
...
...
@@ -640,11 +640,11 @@ int CpuCalcPmeReciprocalForceKernel::findFFTDimension(int minimum) {
// Attempt to factor the current value.
int
unfactored
=
minimum
;
for
(
int
factor
=
2
;
factor
<
12
;
factor
++
)
{
for
(
int
factor
=
2
;
factor
<
8
;
factor
++
)
{
while
(
unfactored
>
1
&&
unfactored
%
factor
==
0
)
unfactored
/=
factor
;
}
if
(
unfactored
==
1
)
if
(
unfactored
==
1
||
unfactored
==
11
||
unfactored
==
13
)
return
minimum
;
minimum
++
;
}
...
...
plugins/cpupme/tests/TestCpuPme.cpp
View file @
49cb91c5
...
...
@@ -124,6 +124,10 @@ void testPME() {
int
main
(
int
argc
,
char
*
argv
[])
{
try
{
if
(
!
CpuCalcPmeReciprocalForceKernel
::
isProcessorSupported
())
{
cout
<<
"CPU is not supported. Exiting."
<<
endl
;
return
0
;
}
testPME
();
}
catch
(
const
exception
&
e
)
{
...
...
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