[vtkusers] Different behavior of vtkXMLPUnstructuredGridWriter in VTK 7.1
andy.bauer at kitware.com
Tue Dec 6 12:11:51 EST 2016
You'll want to enable VTK_Group_MPI (i.e. -DVTK_Group_MPI:BOOL=ON).
Technically the "p" in the pvtu writer really corresponds to piece and not
necessarily parallel. The pieces do map well to SIMD parallelism though.
On Tue, Dec 6, 2016 at 12:06 PM, John Peterson <jwpeterson at gmail.com> wrote:
> 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:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers