<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri, sans-serif" size="2">
<div>Hello,</div>
<div> </div>
<div>I have an application code that runs parallel calculations (multiple parts) and writes a vtk file(s) for each time step. </div>
<div> </div>
<div>There appears to be an issue with having a period “.” within the name of the file given to the writer vtkXMLPUnstructuredGridWriter -- See below. A work around for us has been to replace the “.” with “_”. </div>
<div> </div>
<div> vtkSmartPointer<vtkXMLPUnstructuredGridWriter > w = vtkSmartPointer<vtkXMLPUnstructuredGridWriter>::New();</div>
<div> w->SetNumberOfPieces(numProcs);</div>
<div> w->SetStartPiece(rank);</div>
<div> w->SetEndPiece(rank);</div>
<div> w->SetFileName(_fileName); // where _filename = “Compression_2x1x1.gold”. </div>
<div> </div>
<div>Then, this code was called once for each timestep:</div>
<div> </div>
<div> vtkSmartPointer<vtkUnstructuredGrid> g = …</div>
<div> writer->SetFileName(name.c_str()); // where name = “Compression_2x1x1.gold_t0.pvtu”, “Compression_2x1x1.gold_t1.pvtu”, etc</div>
<div> writer ->SetInput(g);</div>
<div> writer ->Write();</div>
<div> </div>
<div>The result was the creation of the following files:</div>
<div>Compression_2x1x1_0.vtu </div>
<div>Compression_2x1x1.gold_t0.pvtu </div>
<div>Compression_2x1x1.gold_t1.pvtu </div>
<div>Compression_2x1x1.gold_t2.pvtu </div>
<div>Compression_2x1x1.gold_t3.pvtu </div>
<div>Compression_2x1x1.gold_t4.pvtu </div>
<div>Compression_2x1x1.gold_t5.pvtu</div>
<div> </div>
<div>The single vtu file contained only the data from the last call to write(). Each pvtu file pointed to the same vtu file (e.g., each pvtu file contained “<Piece Source="Compression_2x1x1_0.vtu"/>”). </div>
<div> </div>
<div>Regards,</div>
<div>john</div>
<div> </div>
<div> </div>
</font>
</body>
</html>