Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sreekanth Arikatla
VTK-m
Commits
1d816534
Commit
1d816534
authored
Nov 09, 2017
by
Dave Pugmire
Committed by
Robert Maynard
Dec 19, 2017
Browse files
Local var for the array portal instead of inside the for loop.
parent
f98f42de
Changes
1
Hide whitespace changes
Inline
Side-by-side
vtkm/io/writer/VTKDataSetWriter.h
View file @
1d816534
...
...
@@ -193,8 +193,9 @@ private:
vtkm
::
Id
nids
=
cellSet
.
GetNumberOfPointsInCell
(
i
);
cellSet
.
GetIndices
(
i
,
ids
);
out
<<
nids
;
auto
IdPortal
=
ids
.
GetPortalConstControl
();
for
(
int
j
=
0
;
j
<
nids
;
++
j
)
out
<<
" "
<<
ids
.
GetPortalControl
()
.
Get
(
j
);
out
<<
" "
<<
IdPortal
.
Get
(
j
);
out
<<
std
::
endl
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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