[vtkusers] "manually" specify extents for vtkXMLPRectilinearGridWriter

Andy Bauer andy.bauer at kitware.com
Mon Jul 23 12:50:11 EDT 2012


You'll probably need to set the vtkInformation for the whole extent and the
extent translator in your pipeline. The easiest way to do this may be by
using a vtkTrivialProducer or the vtkPVTrivialProducer in Paraview.

Andy

On Sun, Jul 22, 2012 at 2:53 PM, Crni Gorac <cgorac at gmail.com> wrote:

> I have set of values, defined on nodes of 3D rectilinear grid, and
> generated by an MPI-enabled program.  I want to write results in
> parallel, in multiple pieces, into .pvtr format.  I think I have
> everything set up properly, except that
> vtkXMLPRectilinearGridWriter::SetStartPiece() and
> vtkXMLPRectilinearGridWriter::SetEndPiece() are not really woring for
> my case.  Namely, the domain decomposition in my case is such that for
> example for 200x200x200 grid, first MPI process is generating 50x50x50
> block of values starting from point (0,0,0), then second MPI process
> is generating block of same size starting from point (50,0,0), then
> third MPI process is generating block starting from point (0,50,0),
> etc.  So I'd need to specify these extents somehow "manually", but I'm
> not able to find how to do it.  I can create vtkExtentTranslator
> object, and then employ vtkExtentTranslator::SetWholeExtent() and
> vtkExtentTraslator::SetExtent(), that I guess would do the job for me,
> but I don't know how to "attach" this vtkExtentTranslator object to
> vtkXMLPRectilinearGridWriter object.
>
> Note that I'm using VTK 5.10, and that I really don't have any sort of
> VTK pipeline in place - I'm using VTK just for this output operation
> (for the purpose of examining results calculated by my code in
> ParaView).
>
> Thanks.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120723/5986127e/attachment.htm>


More information about the vtkusers mailing list