diff --git a/src/fileFormats/vtk/output/foamVtkOutput.C b/src/fileFormats/vtk/output/foamVtkOutput.C index 7598e5c07f..6a54828813 100644 --- a/src/fileFormats/vtk/output/foamVtkOutput.C +++ b/src/fileFormats/vtk/output/foamVtkOutput.C @@ -39,7 +39,7 @@ License #include "globalIndex.H" #include "instant.H" #include "Fstream.H" -#include "PstreamBuffers.H" +#include "Pstream.H" #include "OSspecific.H" // * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * * // @@ -129,25 +129,17 @@ void Foam::vtk::writeListParallel const globalIndex& procOffset ) { - // List sizes - const globalIndex sizes(values.size()); + // Gather sizes - master information, offsets are irrelevant + const globalIndex procAddr + ( + UPstream::listGatherValues