[vtkusers] vtkXMLPUnstructuredGridWriter() howto?

Sebastien Jourdain sebastien.jourdain at kitware.com
Thu Aug 26 23:18:25 EDT 2010


I didn't use any writer recently, but PxWriter usually write 1 file
per piece and a master file somehow. So you can later on, use a
PxReader to directly read each file on a given process with MPI so
your data are already partitioned.

Seb

PS: Sorry David, I've forgot the reply-all.
PS2: I give a quick look at the example, and I didn't see why there is
only 2 output files. But the dimension seems weird even if I have no
clue if I'm right or wrong.
drawing->SetExtent(0, 20, 0, 50, 0, 0);
I would write that instead.
drawing->SetExtent(0, 20, 0, 50, 0, 1);


On Thu, Aug 26, 2010 at 11:04 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> On Thu, Aug 26, 2010 at 10:52 PM, Sebastien Jourdain
> <sebastien.jourdain at kitware.com> wrote:
>>
>> I think you just need a vtkUnstructuredGrid and set it to the input of
>> the writer. Specify the number of pieces you want and call Update() on
>> the writer.
>>
>> Seb
>
>
> There was a question about SetNumberOfPieces the other day that never got
> resolved - Sebastien, could you take a
> look: http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/IO/XMLPImageDataWriter
> Nico, once we get this issue resolved I'll make the same type of example
> for vtkXMLPUnstructuredGridWriter.
> Someone please correct me if I'm wrong, but these P*Writer's don't write in
> parallel, they simple write data as multiple files (pieces) that can later
> be used for parallel processing.
> David



More information about the vtkusers mailing list