<div dir="ltr"><div><div><div>Hi Timo,<br><br></div>The pieces that are read on each process are typically specified through the pipeline from subsequent filters. Something like a writer that can deal with pieces will request the number of pieces that can be provided to the writer and based on that the writer would then specify which pieces it wants. The reader then produces those pieces. See the example at <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/IO/XMLPUnstructuredGridWriter">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/IO/XMLPUnstructuredGridWriter</a> for an example.<br><br></div>Cheers,<br></div>Andy<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 17, 2017 at 9:31 AM, Timo Oster <span dir="ltr"><<a href="mailto:timo.oster@ovgu.de" target="_blank">timo.oster@ovgu.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi VTK users,<br>
<br>
I am converting my (parallel) program to output (PolyData) files in<br>
parallel VTK XML format. I do this to improve efficiency and because the<br>
data can become too large to be contained in a single process' memory<br>
all at once.<br>
<br>
I have been successful in writing the parallel files, but now I also<br>
need to be able to read them back in. Because of the size of the data,<br>
just reading it into one giant data set all at once is not feasible.<br>
What I would need to do is read the data piece by piece, and distribute<br>
it to the parallel processes. The given class vtkXMLPPolyDataReader does<br>
not seem to offer a way of doing that, or I don't understand it from<br>
just reading the documentation and browsing the source code a little. It<br>
offers a GetNumberOfPieces() function, but no public function that<br>
explicitly reads only a single piece. The GetOutput() function has an<br>
overload that takes an index, but the non-overloaded version just calls<br>
GetOutput(0), so it seems implausible that this is the piece index.<br>
<br>
What would be the best way to read a parallel VTK XML file piece by<br>
piece? Is there something I'm missing in the reader class? Is there a<br>
simple way of getting the piece file names from the summary file to read<br>
them separately? Please advise.<br>
<br>
Best Regards,<br>
<br>
Timo<br>
--<br>
Timo Oster<br>
<br>
Visual Computing Group / Lab. of Fluid Dynamics and Technical Flows<br>
University of Magdeburg<br>
Universitätsplatz 2<br>
D-39106 Magdeburg<br>
<br>
Phone: <a href="tel:%28%2B49-391%29%2067-12647" value="+493916712647">(+49-391) 67-12647</a> / <a href="tel:%28%2B49-391%29%2067-51349" value="+493916751349">(+49-391) 67-51349</a><br>
Offices: Building 29 - Room 234 / Building 14 - Room 108<br>
<br>
PGP Fingerprint: 4F25 89EE A9FD C5FE FEE5 D086 C625 B58C 2411 932F<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>