[vtkusers] vtkPCosmoReader
Ula Popov
ula.popov at gmail.com
Tue Oct 25 14:41:36 EDT 2011
Hello all,
Till last week I used vtkCosmoReader to read .cosmo files.
Now I try to use its parallel version,
and I have a few questions.
I noticed that there are more functions, like SetRL
and SetOverlap.
I set them, should I call update() after that?
i tried to run this:
vtkPCosmoReader *cosmo_reader = vtkPCosmoReader::New();
vtkUnstructuredGrid *cosmo_data;
cosmo_reader->SetRL(256.0);
cosmo_reader->SetOverlap(5);
cosmo_reader->SetFileName(
cosmo_filename);
cosmo_reader->Update();
cosmo_data = cosmo_reader->GetOutput(0);
I get bad-alloc error because of
"cosmo_reader->Update();"
if i comment this line out,
it will go through, but the all the fields will have values equal to zero.
Thank you,
Uliana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111025/755a4c15/attachment.htm>
More information about the vtkusers
mailing list