Skip to content
Snippets Groups Projects
Commit 821f8f53 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

vtkPLagrangianParticleTracker: ensure that source and size are initialized

parent 454fc734
No related merge requests found
......@@ -657,7 +657,7 @@ void vtkPLagrangianParticleTracker::GenerateParticles(const vtkBoundingBox* boun
// seeds pointData.
// Recover this information from another rank.
this->Controller->AllReduce(&dummyRank, &fullArrayRank, 1, vtkCommunicator::MAX_OP);
int source, size;
int source = 0, size = 0;
char type;
int probe = false;
while (!probe)
......@@ -776,7 +776,7 @@ void vtkPLagrangianParticleTracker::GenerateParticles(const vtkBoundingBox* boun
{
// Other ranks containing correct number of arrays, check metadata is correct
char type;
int source, size;
int source = 0, size = 0;
int probe = false;
while (!probe)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment