Commit 906fb9cc authored by Jon Woodring's avatar Jon Woodring
Browse files

Didn't actually allocate the memory (Thanks Kyle!).

Change-Id: I1274fba01f9996ec3168035320e63d289296b585
parent 9146ac45
......@@ -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");
......
Supports Markdown
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