<div dir="ltr"><div><span style="font-size:10pt" lang="EN-US"><span>Hi,<br><br>Take a look at vtkMPICommunicatorOpaqueComm::</span></span>GetHandle() defined in vtkMPI.h, it returns the MPI_Comm handle you may need.<br><br>
</div>Regards,<br></div><div class="gmail_extra"><br clear="all"><div><b>Joachim Pouderoux</b><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="1"><i>PhD, R&D Enginee</i>r</font> <br>
<b><font size="1"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></font></b><br></blockquote>
</div>
<br><br><div class="gmail_quote">2013/4/25 RIVERA, Orlando <span dir="ltr"><<a href="mailto:Orlando.RIVERA@mtu.de" target="_blank">Orlando.RIVERA@mtu.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="DE">
<div>
<p class="MsoNormal"><span style="font-size:10.0pt" lang="EN-US">Hello <br>
<br>
I am using a external library to vtk with MPI <br>
<br>
I have my code this way:<br>
<br>
void vtkXYZReader::DistributeData(vtkSmartPointer<<span>vtkMPICommunicator</span>> commtr) {<br>
external_Lib_Init(MPI_COMM_WORLD);<br>
....<br>
}<br>
<br>
well this works, but it is not elegant. How can I get the MPI_Comm from "commtr" ?<br>
<br>
like :<br>
external_Lib_Init(commtr->GetMPIComm ()); <br>
<br>
this is unfortunately not of type MPI_Comm but of <span>vtkMPICommunicatorOpaqueComm</span>*<br>
<br>
Thanks in advance</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif"" lang="EN-US"></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Orlando</span></p>
</div>
<span style="font-size:8.0pt;font-family:"Arial";color:silver">--</span><br>
<span style="font-size:8.0pt;font-family:"Arial";color:silver"><strong>MTU Aero Engines GmbH</strong></span><br>
<span style="font-size:8.0pt;font-family:"Arial";color:silver">Geschaeftsfuehrung/Board of Management: Egon W. Behle, Vorsitzender/CEO; Dr. Rainer Martens, Dr. Stefan Weingartner, Reiner Winkler</span><br>
<span style="font-size:8.0pt;font-family:"Arial";color:silver">Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Klaus Eberhardt</span><br>
<span style="font-size:8.0pt;font-family:"Arial";color:silver">Sitz der Gesellschaft/Registered Office: Muenchen</span><br>
<span style="font-size:8.0pt;font-family:"Arial";color:silver">Handelsregister/Commercial Register: Muenchen HRB 154230</span><br>
<br>
<span style="font-size:8.0pt;font-family:"Arial";color:silver">Diese E-Mail sowie ihre Anhaenge enthalten MTU-eigene vertrauliche oder rechtlich geschuetzte Informationen.</span><br>
<span style="font-size:8.0pt;font-family:"Arial";color:silver">Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte den Absender und loeschen Sie diese</span><br>
<span style="font-size:8.0pt;font-family:"Arial";color:silver">E-Mail sowie die Anhaenge. Das unbefugte Speichern, Kopieren oder Weiterleiten ist nicht gestattet.</span><br>
<br>
<span style="font-size:8.0pt;font-family:"Arial";color:silver">This e-mail and any attached documents are proprietary to MTU, confidential or protected by law.</span><br>
<span style="font-size:8.0pt;font-family:"Arial";color:silver">If you are not the intended recipient, please advise the sender and delete this message and its attachments.</span><br>
<span style="font-size:8.0pt;font-family:"Arial";color:silver">Any unauthorised storing, copying or distribution is prohibited.</span><br>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>