surfaceCheck: make the -verbose option do something
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -44,7 +44,6 @@ using namespace Foam;
|
|||||||
// Does face use valid vertices?
|
// Does face use valid vertices?
|
||||||
bool validTri
|
bool validTri
|
||||||
(
|
(
|
||||||
const bool verbose,
|
|
||||||
const triSurface& surf,
|
const triSurface& surf,
|
||||||
const label facei
|
const label facei
|
||||||
)
|
)
|
||||||
@ -242,6 +241,10 @@ int main(int argc, char *argv[])
|
|||||||
Info<< nl << "// end blockMeshDict info" << nl << endl;
|
Info<< nl << "// end blockMeshDict info" << nl << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (verbose)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// Region sizes
|
// Region sizes
|
||||||
// ~~~~~~~~~~~~
|
// ~~~~~~~~~~~~
|
||||||
@ -286,7 +289,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
forAll(surf, facei)
|
forAll(surf, facei)
|
||||||
{
|
{
|
||||||
if (!validTri(verbose, surf, facei))
|
if (!validTri(surf, facei))
|
||||||
{
|
{
|
||||||
illegalFaces.append(facei);
|
illegalFaces.append(facei);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user