Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bill Lorensen
VTK
Commits
d9a58bb1
Commit
d9a58bb1
authored
Mar 12, 2012
by
George Zagaris
Browse files
COMP: Fix particle reader warnings
Change-Id: I7bc47008e2c14a6bdefa0760cc5bed61471954da
parent
105287ee
Changes
2
Show whitespace changes
Inline
Side-by-side
AMR/vtkAMREnzoParticlesReader.cxx
View file @
d9a58bb1
...
...
@@ -275,7 +275,7 @@ vtkPolyData* vtkAMREnzoParticlesReader::GetParticles(
assert
(
"Coordinate arrays must have the same size: "
&&
(
ycoords
.
size
()
==
zcoords
.
size
()
)
);
int
TotalNumberOfParticles
=
xcoords
.
size
();
int
TotalNumberOfParticles
=
static_cast
<
int
>
(
xcoords
.
size
()
)
;
positions
->
SetNumberOfPoints
(
TotalNumberOfParticles
);
vtkIdList
*
ids
=
vtkIdList
::
New
();
...
...
@@ -369,7 +369,8 @@ void vtkAMREnzoParticlesReader::SetupParticleDataSelections()
{
assert
(
"pre: Intenal reader is NULL"
&&
(
this
->
Internal
!=
NULL
)
);
unsigned
int
N
=
this
->
Internal
->
ParticleAttributeNames
.
size
();
unsigned
int
N
=
static_cast
<
unsigned
int
>
(
this
->
Internal
->
ParticleAttributeNames
.
size
()
);
for
(
unsigned
int
i
=
0
;
i
<
N
;
++
i
)
{
...
...
AMR/vtkAMRFlashParticlesReader.cxx
View file @
d9a58bb1
...
...
@@ -208,7 +208,7 @@ vtkPolyData* vtkAMRFlashParticlesReader::GetParticles(
this
->
Internal
,
this
->
Internal
->
NumberOfParticles
);
// Sub-sample particles
int
TotalNumberOfParticles
=
xcoords
.
size
();
int
TotalNumberOfParticles
=
static_cast
<
int
>
(
xcoords
.
size
()
)
;
vtkIdList
*
ids
=
vtkIdList
::
New
();
ids
->
SetNumberOfIds
(
TotalNumberOfParticles
);
...
...
@@ -356,7 +356,8 @@ void vtkAMRFlashParticlesReader::SetupParticleDataSelections()
{
assert
(
"pre: Internal reader is NULL"
&&
(
this
->
Internal
!=
NULL
)
);
unsigned
int
N
=
this
->
Internal
->
ParticleAttributeNames
.
size
();
unsigned
int
N
=
static_cast
<
unsigned
int
>
(
this
->
Internal
->
ParticleAttributeNames
.
size
());
for
(
unsigned
int
i
=
0
;
i
<
N
;
++
i
)
{
this
->
ParticleDataArraySelection
->
AddArray
(
...
...
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