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
28b79b2f
Commit
28b79b2f
authored
Mar 03, 2017
by
peastman
Browse files
Use C++11 style loops
parent
ab8f1021
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
platforms/reference/src/SimTKReference/ReferenceNeighborList.cpp
...ms/reference/src/SimTKReference/ReferenceNeighborList.cpp
+3
-3
No files found.
platforms/reference/src/SimTKReference/ReferenceNeighborList.cpp
View file @
28b79b2f
...
...
@@ -184,10 +184,10 @@ public:
const
map
<
VoxelIndex
,
Voxel
>::
const_iterator
voxelEntry
=
voxelMap
.
find
(
voxelIndex
);
if
(
voxelEntry
==
voxelMap
.
end
())
continue
;
// no such voxel; skip
const
Voxel
&
voxel
=
voxelEntry
->
second
;
for
(
Voxel
::
const_iter
ato
r
item
Iter
=
voxel
.
begin
();
itemIter
!=
voxel
.
end
();
++
itemIter
)
for
(
a
u
to
&
item
:
voxel
)
{
const
AtomIndex
atomJ
=
item
Iter
->
second
;
const
Vec3
&
locationJ
=
*
item
Iter
->
first
;
const
AtomIndex
atomJ
=
item
.
second
;
const
Vec3
&
locationJ
=
*
item
.
first
;
// Ignore self hits
if
(
atomI
==
atomJ
)
continue
;
...
...
Prev
1
2
Next
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