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:
parent
46e0ef92d3
commit
9de77857a6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user