Commit d9a58bb1 authored by George Zagaris's avatar George Zagaris
Browse files

COMP: Fix particle reader warnings

Change-Id: I7bc47008e2c14a6bdefa0760cc5bed61471954da
parent 105287ee
...@@ -275,7 +275,7 @@ vtkPolyData* vtkAMREnzoParticlesReader::GetParticles( ...@@ -275,7 +275,7 @@ vtkPolyData* vtkAMREnzoParticlesReader::GetParticles(
assert( "Coordinate arrays must have the same size: " && assert( "Coordinate arrays must have the same size: " &&
(ycoords.size()==zcoords.size() ) ); (ycoords.size()==zcoords.size() ) );
int TotalNumberOfParticles = xcoords.size(); int TotalNumberOfParticles = static_cast<int>(xcoords.size());
positions->SetNumberOfPoints( TotalNumberOfParticles ); positions->SetNumberOfPoints( TotalNumberOfParticles );
vtkIdList *ids = vtkIdList::New(); vtkIdList *ids = vtkIdList::New();
...@@ -369,7 +369,8 @@ void vtkAMREnzoParticlesReader::SetupParticleDataSelections() ...@@ -369,7 +369,8 @@ void vtkAMREnzoParticlesReader::SetupParticleDataSelections()
{ {
assert( "pre: Intenal reader is NULL" && (this->Internal != NULL) ); 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 ) for( unsigned int i=0; i < N; ++i )
{ {
......
...@@ -208,7 +208,7 @@ vtkPolyData* vtkAMRFlashParticlesReader::GetParticles( ...@@ -208,7 +208,7 @@ vtkPolyData* vtkAMRFlashParticlesReader::GetParticles(
this->Internal, this->Internal->NumberOfParticles ); this->Internal, this->Internal->NumberOfParticles );
// Sub-sample particles // Sub-sample particles
int TotalNumberOfParticles = xcoords.size(); int TotalNumberOfParticles = static_cast<int>(xcoords.size());
vtkIdList *ids = vtkIdList::New(); vtkIdList *ids = vtkIdList::New();
ids->SetNumberOfIds( TotalNumberOfParticles ); ids->SetNumberOfIds( TotalNumberOfParticles );
...@@ -356,7 +356,8 @@ void vtkAMRFlashParticlesReader::SetupParticleDataSelections() ...@@ -356,7 +356,8 @@ void vtkAMRFlashParticlesReader::SetupParticleDataSelections()
{ {
assert( "pre: Internal reader is NULL" && (this->Internal != NULL) ); 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 ) for( unsigned int i=0; i < N; ++i )
{ {
this->ParticleDataArraySelection->AddArray( this->ParticleDataArraySelection->AddArray(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment