From a812db29bc4825ad9113c705ade9901008feb3c0 Mon Sep 17 00:00:00 2001 From: Mark Olesen <Mark.Olesen@esi-group.com> Date: Mon, 14 Jan 2019 16:43:30 +0100 Subject: [PATCH] BUG: vtk::internalWriter::writeProcIDs could block in parallel - could be triggered if running in parallel, but requesting procIDs to be written with a non-parallel version of the writer. --- src/conversion/vtk/output/foamVtkInternalWriter.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conversion/vtk/output/foamVtkInternalWriter.C b/src/conversion/vtk/output/foamVtkInternalWriter.C index 1179b8971fe..6e0769ee686 100644 --- a/src/conversion/vtk/output/foamVtkInternalWriter.C +++ b/src/conversion/vtk/output/foamVtkInternalWriter.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2017-2018 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -665,9 +665,9 @@ void Foam::vtk::internalWriter::writeCellIDs() bool Foam::vtk::internalWriter::writeProcIDs() { - if (!Pstream::parRun()) + if (!parallel_) { - // Skip serial output (meaningless) + // Disabled in serial output (meaningless) return false; } -- GitLab