[vtkusers] vtk.vtkDistributedDataFilter() not works

Magician f_magician at mac.com
Sat Nov 19 04:16:01 EST 2016


Hi all,


I posted the message about partitioning datasets.
<http://public.kitware.com/pipermail/vtkusers/2016-November/097123.html>

I still trying vtk.vtkDistributedDataFilter(), but the exported data aren’t partitioned.
My VTK version is 7.1.0 (pvpython with ParaView 5.2.0 RC3) and executing on 2 CPUs.

Here is the sample code:

    import vtk

    source = vtk.vtkPointSource()
    source.SetCenter((0.0, 0.0, 0.0))
    source.SetNumberOfPoints(1000000)
    source.SetRadius(1.0)
    source.Update()

    d3 = vtk.vtkDistributedDataFilter()
    d3.SetInputData(source.GetOutput())
    d3.SetBoundaryMode(0)
    d3.Update()

    writer = vtk.vtkXMLPUnstructuredGridWriter()
    writer.SetInputData(d3.GetOutput())
    writer.SetFileName(’test.pvtu’)
    writer.SetNumberOfPieces(2)
    writer.WriteSummaryFileOn()
    writer.SetStartPiece(0)
    writer.SetEndPiece(1)
    writer.Write()
How to partition data?


Magician
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161119/bfd4246c/attachment.html>


More information about the vtkusers mailing list