Commit 7d9fd7f6 authored by George Zagaris's avatar George Zagaris
Browse files

Merge remote-tracking branch 'pvvtk/pv-master' into AMR-Refactoring

parents 845046c0 b3fde8f5
......@@ -302,7 +302,7 @@ int vtkPCosmoReader::RequestData(
points->SetDataTypeToFloat();
points->Allocate(numberOfParticles);
vtkCellArray* cells = vtkCellArray::New();
cells->EstimateSize(numberOfParticles, 1);
cells->Allocate(cells->EstimateSize(numberOfParticles, 1));
vtkFloatArray* vel = vtkFloatArray::New();
vel->SetName("velocity");
......
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