[vtkusers] Problem in reading more than 1000 files by vtk readers

Ahmad falahatpisheh at gmail.com
Sat Feb 11 01:48:49 EST 2012


Excellent catch. That fixed the problem of file handling. The thing is that
for some reason the rewinding does not work properly. it does not completely
rewound to the beginning of the file. Since my Tecplot file has comments in
the first few lines, the rewound position will be positioned in the middle
of the comments (in my case s->start=320 in gz_open function) and a lot of
errors will be printed on the screen indicating "unknown format found in the
file". This significantly slows down the reading of 1000 files. Can you
please help me with that?

The solution that I found is as follows which works fine for me. But I am
not sure if this reduce the generality of the library.

In gz_open function in gzio.c file, I found out that in my case
s->start=320. Can I have your opinion about setting this to s->start=0 to
completely rewind to the beginning of the file and not skip the header?

Is it really necessary to rewind the file? Isn't it better to close and open
a new one? Is it because of speed? Please let me know. Thank you.

--
View this message in context: http://vtk.1045678.n5.nabble.com/Problem-in-reading-more-than-1000-files-by-vtk-readers-tp5459233p5474525.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list