[vtkusers] Different behavior of vtkXMLPUnstructuredGridWriter in VTK 7.1

John Peterson jwpeterson at gmail.com
Tue Dec 6 12:06:48 EST 2016


On Tue, Dec 6, 2016 at 9:12 AM, Andy Bauer <andy.bauer at kitware.com> wrote:

> Hi John,
>
> The issue is indeed due to changes that I mentioned before (i.e. only data
> sets that have data get written out and the .pvtu file is adjusted
> accordingly). With this change though interprocess communication is
> required which is done the the vtkMultiProcessController::GetGlobalController()
> object which essentially acts as MPI_COMM_WORLD within VTK. You need to
> create a vtkMPIController which derives from vtkMultiProcessController. See
> the attached files for how that is done. This should also be backwards
> compatible but if it isn't, please let us know.
>

Thanks for your help.

It looks like the VTK I built from source apparently does not have MPI
enabled (neither vtkMPIController.h nor libvtkParallelMPI-7.1.dylib is
present in my installation) as it was never required for our code prior to
VTK-7.1. Since I'm very much of a cmake novice, do you know what flag I
would pass to cmake when building VTK to turn this on?  My guess is
something like:

-DModule_vtkParallelMPI:BOOL=ON

?

-- 
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161206/5f2496ea/attachment.html>


More information about the vtkusers mailing list