<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi again,
<div class=""><br class="">
</div>
<div class="">I was wondering what the “canonical” way is to get the correct MPI communicator within a parallel reader plugin (e.g. for use in a parallel I/O library)? Until now I just used “MPI_COMM_WORLD” and hoped for the best. However, I noticed that in
the CosmoTools (<a href="https://github.com/Kitware/ParaView/blob/master/ParaViewCore/VTKExtensions/CosmoTools/vtkGenericIOUtilities.cxx#L25" class="">https://github.com/Kitware/ParaView/blob/master/ParaViewCore/VTKExtensions/CosmoTools/vtkGenericIOUtilities.cxx#L25</a>)
or the AdiosReader (<a href="https://github.com/Kitware/ParaView/blob/master/Plugins/AdiosReader/vtkAdiosInternals.h#L103" class="">https://github.com/Kitware/ParaView/blob/master/Plugins/AdiosReader/vtkAdiosInternals.h#L103</a>) the raw MPI communicator is
obtained through some calls to vtkMPICommunicator objects. Is this the right way to do it?</div>
<div class=""><br class="">
</div>
<div class="">As a second part to this question, what is the correct way of initializing (and finalizing?) MPI from within a reader plugin if it was not initialized (e.g. because paraview was started without the —mpi flag)? Is this even possible to to “correctly”
or will it always be a hack to do this from within a plugin?</div>
<div class=""><br class="">
</div>
<div class="">Regards,</div>
<div class=""><br class="">
</div>
<div class="">Michael</div>
<br class="">
<br class="">
<div apple-content-edited="true" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
--<br class="">
Michael Schlottke<br class="">
<br class="">
Chair of Fluid Mechanics and Institute of Aerodynamics<br class="">
RWTH Aachen University<br class="">
Wüllnerstraße 5a<br class="">
52062 Aachen<br class="">
Germany<br class="">
<br class="">
Phone: +49 (241) 80 95188<br class="">
Fax: +49 (241) 80 92257<br class="">
Mail: <a href="mailto:m.schlottke@aia.rwth-aachen.de" class="">m.schlottke@aia.rwth-aachen.de</a><br class="">
Web: <a href="http://www.aia.rwth-aachen.de" class="">http://www.aia.rwth-aachen.de</a></div>
</span></span></div>
<br class="">
</body>
</html>