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

RIVERA, Orlando Orlando.RIVERA at mtu.de
Thu Apr 25 04:14:17 EDT 2013


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130425/b5169eb7/attachment.htm>


More information about the vtkusers mailing list