<div dir="ltr"><div><div><div><div><div><div><div>Hello,<br><br>I am trying to use catalyst in our Finite Element framework, but I can't get it to work right now. For background information, I would like to inferface a parallel simulation, running with MPI, with paraview to display the results, thus do live visualization.<br><br></div>I compiled Paraview from the 4.2 sources (from the website) to ensure that our library compiles with the same library as the ParaView I'm launching.<br><br></div>The problem I have is similar to the one reported in:<br><a href="http://public.kitware.com/pipermail/paraview/2013-June/028497.html" target="_blank">http://public.kitware.com/pipermail/paraview/2013-June/028497.html</a><br><br><br></div><div>In our application, we have an exporter interface that allows to write VTK data (vtkUnstructuredGrid) with field data (scalar, vectorial). I built the catalyst interoperation on top of it, by using the Cxx example provided in:<br><a href="https://github.com/Kitware/ParaViewCatalystExampleCode" target="_blank">https://github.com/Kitware/ParaViewCatalystExampleCode/tree/master/CxxFullExample</a><br></div>I'm am using a modified version of the <span><a href="https://github.com/Kitware/ParaViewCatalystExampleCode/blob/master/CxxFullExample/SampleScripts/feslicescript.py" title="feslicescript.py" target="_blank">feslicescript.py</a> that should enable live visualization IMHO (enclosed with this email).<br><br></span></div><div><span>The excerpt of C++ code running the coprocessing is the following one:<br>----<br></span></div><div><span>vtkSmartPointer<vtkCPDataDescription> dataDescription = vtkSmartPointer<vtkCPDataDescription>::New();<br>dataDescription->AddInput("input");<br><br>if(inSituProcessor->RequestDataDescription(dataDescription.GetPointer()) != 0)<br>{<br>  dataDescription->GetInputDescriptionByName("input")->SetGrid(out);<br>  dataDescription->SetForceOutput(true);<br>  std::cout << "CoProcess " << inSituProcessor->CoProcess(dataDescription.GetPointer())<< std::endl;<br>}<br>----<br></span></div><div><span>where out is the unstructured grid data.<br></span></div><div><span><br></span></div><div><span>I then launch Paraview and allow connection for catalyst via the menu. Eventually I launch our simulation that interfaces with Catalyst.<br><br></span></div><div><span>I then get the following error in Paraview:<br>ERROR: In /home/ancel/Downloads/ParaView-v4.2.0-source/VTK/Parallel/Core/vtkSocketCommunicator.cxx, line 812<br>vtkSocketCommunicator (0x2b1f940): Could not receive tag. 1<br><br></span></div><div><span>And the coprocessing stops in Paraview, altough I can see the catalyst server in the Pipeline browser and a PVTrivialProducer1 appearing in the background, but no data appear in the visualization window of Paraview. <br></span></div><div><span><br></span></div><div><span>I tried instrumenting the code in Paraview to locate where the problem would be, but it appears that the problem happens outside of the vtkLiveInsituLink class, which (correct me If I'm wrong) should handle the link between the application and Paraview.<br></span></div><div><span><br></span></div><div><span>The different questions that I have would be summed up as:<br></span></div><div><span>- Can you give me some pointer as to where the problem might be located ? Coding mistake on my side ? Did I miss something in the issue I referred to before ?<br></span></div><span>- Is it possible to pause the simulation while the user manipulates data in Paraview ? How ?<br></span></div><span></span></div><div><span><br></span></div><div><span>Sorry for the long mail, but I tried to be as precise as I could be,<br></span></div><span>Thanks in advance for the help and your time,<br><br></span></div><span>Best regards,<br>Alexandre Ancel<br></span><div><div><div><div><div><br><div><div><div><div>-- <br><div><div dir="ltr"><div><div dir="ltr"><span><font color="#888888"><div dir="ltr"><font face="courier new, monospace">Alexandre Ancel <br>Docteur, Ingénieur de recherche / Phd, Research Engineer<br></font><div>
<font face="courier new, monospace"><a href="http://www.cemosis.fr" target="_blank">Ce<font color="#888888">mosis</font></a> - <a href="mailto:alexandre.ancel@cemosis.fr" target="_blank">alexandre.ancel@cemosis.fr</a></font></div><div><font face="courier new, monospace">Tel: +33 (0)3 68 8</font><span><font color="#888888"><font face="courier new, monospace"><b>5 02 06</b></font></font></span></div>
<div><font face="courier new, monospace">IRMA - 7, rue René Descartes</font></div><div><font face="courier new, monospace">67 000 Strasbourg, France<br></font></div></div></font></span></div></div></div></div>
</div></div></div></div></div></div></div></div></div></div>