From 9de77857a6d334677cc338da9b3ce23e7bea12cb Mon Sep 17 00:00:00 2001 From: Martin Lichtmes <> Date: Tue, 5 Mar 2024 15:19:29 +0100 Subject: [PATCH] ENH: add surface patch index to surfaceCheck output - makes it somewhat easier to find a correspondence of patch names and patch index (for paraview) --- .../utilities/surface/surfaceCheck/surfaceCheck.C | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/applications/utilities/surface/surfaceCheck/surfaceCheck.C b/applications/utilities/surface/surfaceCheck/surfaceCheck.C index fd6e5dbbca..7c6be507e1 100644 --- a/applications/utilities/surface/surfaceCheck/surfaceCheck.C +++ b/applications/utilities/surface/surfaceCheck/surfaceCheck.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2016 OpenFOAM Foundation - Copyright (C) 2016-2022 OpenCFD Ltd. + Copyright (C) 2016-2024 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -413,7 +413,7 @@ int main(int argc, char *argv[]) // ~~~~~~~~~~~~ { - labelList regionSize(surf.patches().size(), Zero); + labelList regionSize(surf.patches().size(), Foam::zero{}); forAll(surf, facei) { @@ -433,11 +433,12 @@ int main(int argc, char *argv[]) } } - Info<< "Region\tSize" << nl - << "------\t----" << nl; + Info<< "Index\tRegion\tSize" << nl + << "-----\t------\t----" << nl; forAll(surf.patches(), patchi) { - Info<< surf.patches()[patchi].name() << '\t' + Info<< patchi << '\t' + << surf.patches()[patchi].name() << '\t' << regionSize[patchi] << nl; } Info<< nl << endl;