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

ExerciseMultiProcessController: fill the buffer with 0

This helps to figure out what is supposed to be in the array when
analyzing values post-gather.
parent 40aef1f4
No related branches found
No related tags found
No related merge requests found
...@@ -545,6 +545,7 @@ void ExerciseType(vtkMultiProcessController* controller) ...@@ -545,6 +545,7 @@ void ExerciseType(vtkMultiProcessController* controller)
lengths[i] = static_cast<vtkIdType>(vtkMath::Random(0.0, arraySize + 0.99)); lengths[i] = static_cast<vtkIdType>(vtkMath::Random(0.0, arraySize + 0.99));
} }
buffer->SetNumberOfTuples(offsets[numProc - 1] + lengths[numProc - 1]); buffer->SetNumberOfTuples(offsets[numProc - 1] + lengths[numProc - 1]);
buffer->Fill(0.);
result = 1; result = 1;
controller->AllGatherV(sourceArrays[rank]->GetPointer(0), buffer->GetPointer(0), lengths[rank], controller->AllGatherV(sourceArrays[rank]->GetPointer(0), buffer->GetPointer(0), lengths[rank],
lengths.data(), offsets.data()); lengths.data(), offsets.data());
......
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