[Paraview-developers] How to get raw MPI communicator in plugin

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue Apr 14 12:00:30 EDT 2015


> However, I noticed that in the CosmoTools ... Is this the right way to do it?

Yes, that'd be a good way of getting the MPI communicator.


> 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?

It will always be a hack to do this in the plugin. "--mpi" flag was
added to support such use-cases. You can mark a  reader/filter as
unavailable when MPI is not initialized too, if if your reader/filter
needs MPI.


More information about the Paraview-developers mailing list