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
2a02b6f1
"...platforms/cuda-old/tests/AmoebaTinkerParameterFile.cpp" did not exist on "eb2c0d30e392f27c13fe872a45ab4e076f9526b5"
Commit
2a02b6f1
authored
Dec 15, 2015
by
Peter Eastman
Browse files
Minor optimization
parent
cab0faf8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
platforms/cuda/src/CudaContext.cpp
platforms/cuda/src/CudaContext.cpp
+1
-1
platforms/opencl/src/OpenCLContext.cpp
platforms/opencl/src/OpenCLContext.cpp
+1
-1
No files found.
platforms/cuda/src/CudaContext.cpp
View file @
2a02b6f1
...
...
@@ -1119,7 +1119,7 @@ void CudaContext::invalidateMolecules() {
void
CudaContext
::
reorderAtoms
()
{
atomsWereReordered
=
false
;
if
(
numAtoms
==
0
||
nonbonded
==
NULL
||
!
nonbonded
->
getUseCutoff
()
||
stepsSinceReorder
<
10
0
)
{
if
(
numAtoms
==
0
||
nonbonded
==
NULL
||
!
nonbonded
->
getUseCutoff
()
||
stepsSinceReorder
<
25
0
)
{
stepsSinceReorder
++
;
return
;
}
...
...
platforms/opencl/src/OpenCLContext.cpp
View file @
2a02b6f1
...
...
@@ -1035,7 +1035,7 @@ void OpenCLContext::invalidateMolecules() {
void
OpenCLContext
::
reorderAtoms
()
{
atomsWereReordered
=
false
;
if
(
numAtoms
==
0
||
nonbonded
==
NULL
||
!
nonbonded
->
getUseCutoff
()
||
stepsSinceReorder
<
10
0
)
{
if
(
numAtoms
==
0
||
nonbonded
==
NULL
||
!
nonbonded
->
getUseCutoff
()
||
stepsSinceReorder
<
25
0
)
{
stepsSinceReorder
++
;
return
;
}
...
...
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