ENH: add surface patch index to surfaceCheck output

- makes it somewhat easier to find a correspondence of patch names and
  patch index (for paraview)
This commit is contained in:
Martin Lichtmes 2024-03-05 15:19:29 +01:00 committed by Mark Olesen
parent 46e0ef92d3
commit 9de77857a6

View File

@ -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;