From 33ff3201ea382097a48e563ee82c09b0f55d6036 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Fri, 29 Oct 2021 11:36:22 +0200 Subject: [PATCH] ENH: replace PstreamBuffers with scheduled read/writes for VTK output - use the new updates to globalIndex to manage the bookkeeping --- src/fileFormats/vtk/output/foamVtkOutput.C | 55 ++- .../vtk/output/foamVtkOutputTemplates.C | 445 ++++++++++-------- 2 files changed, 293 insertions(+), 207 deletions(-) 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