[vtkusers] MPI application writing PVTI
shawn.waldon at kitware.com
Mon Jun 1 13:52:42 EDT 2015
One of the key things to realize about the vtkXMLP*Writers is that the
writer makes no assumptions when used in parallel. The P is for Piece not
Parallel, so you have to tell it how many pieces total are being written.
You also have to tell it the start and end piece numbers for each process
(probably just the process id). Otherwise it defaults to one total piece
and each process thinks it is writing piece 0 so the file gets clobbered
when all the processes try to write it. See the vtkXMLPDataWriter
documentation  for details on how to set these options.
On Mon, Jun 1, 2015 at 1:15 PM, Berk Geveci <berk.geveci at kitware.com> wrote:
> The easiest thing is to use vtkXMLPImageDataWriter in parallel to write an
> example and then to follow that template.
> On Thu, May 28, 2015 at 2:20 PM, Alejandro Fernández <
> alejandro.fernandez at bsc.es> wrote:
>> Hello everyone,
>> I have a C++ MPI application that writes the results of a
>> domain-decomposed mesh in different VTI files. Each process writes its own
>> VTI file with the points corresponding to its domain. In order to group all
>> VTI files into a single 3D image in paraview, I want to produce a single
>> PVTI file using XMLPImageDataWriter. However, I have not found any example
>> and do not know how to achieve this result with just the raw class method
>> Please, can somebody provide me a C++ example or point me to the required
>> Thank you very much, your help will be much appreciated.
>> Alejandro Fernández Suárez
>> Computer Science Dept.
>> K2M Building - Room 104 - (+34) 934 137 529
>> Barcelona Supercomputing Center - CNS
>> Powered by www.kitware.com
>> Visit other Kitware open-source projects at
>> Please keep messages on-topic and check the VTK FAQ at:
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>> Follow this link to subscribe/unsubscribe:
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the VTK FAQ at:
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers