[vtkusers] Partitioning Data

Terry Jordan Terry.Jordan at NETL.DOE.GOV
Mon Dec 28 17:15:58 EST 2009


I am trying to partition a unstructured grid into 4 evenly sized pieces.  Currently I am doing the following:
 
vtkXMLPUnstructuredGridWriter *writer = vtkXMLPUnstructuredGridWriter::New();
writer->SetInput( filteredGrid );
writer->SetFileName(vtkFilename);
writer->SetNumberOfPieces( 4 );
writer->SetStartPiece(0);
writer->SetEndPiece(3);
writer->Write();
 
filteredGrid is a vtkUnstructuredGrid
 
The result of this code is 4 copies of the data (1 pvtu and 4 vtu).  Each is identical to the original data.  What am I missing?  I am running this code on a single cpu without the use of MPI.  Do I have to use MPI?
 
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091228/19339700/attachment.htm>


More information about the vtkusers mailing list