mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
committed by
Mark Olesen
parent
46e0ef92d3
commit
9de77857a6
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2011-2016 OpenFOAM Foundation
|
Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
Copyright (C) 2016-2022 OpenCFD Ltd.
|
Copyright (C) 2016-2024 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
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)
|
forAll(surf, facei)
|
||||||
{
|
{
|
||||||
@ -433,11 +433,12 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Info<< "Region\tSize" << nl
|
Info<< "Index\tRegion\tSize" << nl
|
||||||
<< "------\t----" << nl;
|
<< "-----\t------\t----" << nl;
|
||||||
forAll(surf.patches(), patchi)
|
forAll(surf.patches(), patchi)
|
||||||
{
|
{
|
||||||
Info<< surf.patches()[patchi].name() << '\t'
|
Info<< patchi << '\t'
|
||||||
|
<< surf.patches()[patchi].name() << '\t'
|
||||||
<< regionSize[patchi] << nl;
|
<< regionSize[patchi] << nl;
|
||||||
}
|
}
|
||||||
Info<< nl << endl;
|
Info<< nl << endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user