[vtkusers] Get MPI_Comm (MPI_COMM_WORLD and MPI_COMM_SELF) from vtkMPICommunicator

Joachim Pouderoux joachim.pouderoux at kitware.com
Thu Apr 25 05:33:39 EDT 2013


Hi,

Take a look at vtkMPICommunicatorOpaqueComm::GetHandle() defined in
vtkMPI.h, it returns the MPI_Comm handle you may need.

Regards,

*Joachim Pouderoux*

*PhD, R&D Enginee*r
*Kitware SAS <http://www.kitware.fr>*



2013/4/25 RIVERA, Orlando <Orlando.RIVERA at mtu.de>

>  Hello
>
> I am using a external library to vtk with MPI
>
> I have my code this way:
>
> void vtkXYZReader::DistributeData(vtkSmartPointer<vtkMPICommunicator>
> commtr) {
> external_Lib_Init(MPI_COMM_WORLD);
> ....
> }
>
> well this works, but it is not elegant. How can I get the MPI_Comm from
> "commtr" ?
>
> like :
> external_Lib_Init(commtr->GetMPIComm ());
>
> this is unfortunately not of type MPI_Comm but of
> vtkMPICommunicatorOpaqueComm*
>
> Thanks in advance
>
>
>
> Orlando
>  --
> *MTU Aero Engines GmbH*
> Geschaeftsfuehrung/Board of Management: Egon W. Behle, Vorsitzender/CEO;
> Dr. Rainer Martens, Dr. Stefan Weingartner, Reiner Winkler
> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Klaus
> Eberhardt
> Sitz der Gesellschaft/Registered Office: Muenchen
> Handelsregister/Commercial Register: Muenchen HRB 154230
>
> Diese E-Mail sowie ihre Anhaenge enthalten MTU-eigene vertrauliche oder
> rechtlich geschuetzte Informationen.
> Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte
> den Absender und loeschen Sie diese
> E-Mail sowie die Anhaenge. Das unbefugte Speichern, Kopieren oder
> Weiterleiten ist nicht gestattet.
>
> This e-mail and any attached documents are proprietary to MTU,
> confidential or protected by law.
> If you are not the intended recipient, please advise the sender and delete
> this message and its attachments.
> Any unauthorised storing, copying or distribution is prohibited.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130425/8b349c27/attachment.htm>


More information about the vtkusers mailing list