<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16939" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>I am trying to partition a unstructured grid into 4 evenly sized pieces.&nbsp; Currently I am doing the following:</DIV>
<DIV>&nbsp;</DIV>
<DIV>vtkXMLPUnstructuredGridWriter *writer = vtkXMLPUnstructuredGridWriter::New();</DIV>
<DIV>writer-&gt;SetInput( filteredGrid );<BR>writer-&gt;SetFileName(vtkFilename);<BR>writer-&gt;SetNumberOfPieces( 4 );<BR>writer-&gt;SetStartPiece(0);<BR>writer-&gt;SetEndPiece(3);<BR>writer-&gt;Write();</DIV>
<DIV>&nbsp;</DIV>
<DIV>filteredGrid is a vtkUnstructuredGrid</DIV>
<DIV>&nbsp;</DIV>
<DIV>The result of this code is 4 copies of the data (1 pvtu and 4 vtu).&nbsp; Each is identical to the original data.&nbsp; What am I missing?&nbsp; I am running this code on a single cpu without the use of MPI.&nbsp; Do I have to use MPI?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks in advance.</DIV></BODY></HTML>