<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><span style="background-color: rgb(255, 255, 255);"><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap;">Hi,</span></font></span>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">I am relatively new to paraview and developing a co-processing framework for a client.</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">I am facing problem when running paraview in parallel mode.</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">I have developed a paraview source plugin which collects data from each iteration of solver simulation and renders in paraview. </span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">When simulation is run in parallel mode with n processes, source plugin collects n multiBlockDataSets.</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">If paraview is also running in parallel mode with n processes, source plugin code assigns one multiblock to each paraview process. </span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">However rendering fails in this scenario with error message:</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">'<i>vtkMultiBlockDataSet (0x1860afe0): Structure does not match. You must use CopyStructure before calling this method</i>'</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font face="Arial" size="2"><span style="background-color: rgb(255, 255, 255);"><span style="line-height: 18px; white-space: nowrap;">While exploring this error, some old paraview e-mails suggested to apply d3 filter to each dataset.</span></span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">I applied d3 filter to each multiblock as below:</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font size="2" face="Courier New"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">VTK_CREATE(vtkDistributedDataFilter, d3);</span></font></div>
<div><font size="2" face="Courier New"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font size="2" face="Courier New"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">d3->AddInputData(multiblock);</span></font></div>
<div><font size="2" face="Courier New"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">d3->UpdateInformation();</span></font></div>
<div><font size="2" face="Courier New"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">exec = static_cast<vtkStreamingDemandDrivenPipeline*>(d3->GetExecutive());</span></font></div>
<div><font size="2" face="Courier New"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">exec->SetUpdateExtent(exec->GetOutputInformation(), piece, numPieces, 1); // 1 -> ghostlevel</span></font></div>
<div><font size="2" face="Courier New"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">d3->Update(); </span></font></div>
<div><font size="2" face="Courier New"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font size="2" face="Courier New"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">newMultiBlock->ShallowCopy(d3->GetOutput());</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">However this leads to new set of errors:</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);"><i>vtkPKdTree (0xea7b440): (process 0) VolumeBounds - degenerate volume</i></span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);"><i>vtkDistributedDataFilter (0xe7b6480): Unable to build k-d tree structure</i></span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);"><i>vtkDistributedDataFilter (0xe7b6480): vtkDistributedDataFilter::Execute k-d tree failure</i></span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">Can anyone advice here what could be going wrong? MultiBlockDataSets render perfectly with sequential run of paraview.</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">Thanks,</span></font></div>
<div><font face="Arial" size="2"><span style="line-height: 18px; white-space: nowrap; background-color: rgb(255, 255, 255);">Prashant</span></font></div>
</div>
---Disclaimer------------------------------ This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message.
Opinions, conclusions and other information in this transmission that do not relate to the official business of QuEST Global and/or its subsidiaries, shall be understood as neither given nor endorsed by it. Any statements made herein that are tantamount to
contractual obligations, promises, claims or commitments shall not be binding on the Company unless followed by written confirmation by an authorized signatory of the Company. -----------------------------------------------------------------------------------
</body>
</html>