<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. Currently I am doing the following:</DIV>
<DIV> </DIV>
<DIV>vtkXMLPUnstructuredGridWriter *writer = vtkXMLPUnstructuredGridWriter::New();</DIV>
<DIV>writer->SetInput( filteredGrid );<BR>writer->SetFileName(vtkFilename);<BR>writer->SetNumberOfPieces( 4 );<BR>writer->SetStartPiece(0);<BR>writer->SetEndPiece(3);<BR>writer->Write();</DIV>
<DIV> </DIV>
<DIV>filteredGrid is a vtkUnstructuredGrid</DIV>
<DIV> </DIV>
<DIV>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?</DIV>
<DIV> </DIV>
<DIV>Thanks in advance.</DIV></BODY></HTML>