From c5107bc42fa55e9ee7c26e0162f18d5434b2735e Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Fri, 10 Mar 2023 23:05:50 +0000 Subject: [PATCH 1/2] surfaceCheck: make the -verbose option do something --- .../utilities/surface/surfaceCheck/surfaceCheck.C | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/applications/utilities/surface/surfaceCheck/surfaceCheck.C b/applications/utilities/surface/surfaceCheck/surfaceCheck.C index 54fdb592e2..ef2e25bc75 100644 --- a/applications/utilities/surface/surfaceCheck/surfaceCheck.C +++ b/applications/utilities/surface/surfaceCheck/surfaceCheck.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -44,7 +44,6 @@ using namespace Foam; // Does face use valid vertices? bool validTri ( - const bool verbose, const triSurface& surf, const label facei ) @@ -242,6 +241,10 @@ int main(int argc, char *argv[]) Info<< nl << "// end blockMeshDict info" << nl << endl; } + if (verbose) + { + return 0; + } // Region sizes // ~~~~~~~~~~~~ @@ -286,7 +289,7 @@ int main(int argc, char *argv[]) forAll(surf, facei) { - if (!validTri(verbose, surf, facei)) + if (!validTri(surf, facei)) { illegalFaces.append(facei); } From 87b606c45e93e08aa6e2096d310ebb9a038f53cb Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Tue, 14 Mar 2023 11:33:17 +0000 Subject: [PATCH 2/2] foamDictionary.C: fixed typo --- .../utilities/miscellaneous/foamDictionary/foamDictionary.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/utilities/miscellaneous/foamDictionary/foamDictionary.C b/applications/utilities/miscellaneous/foamDictionary/foamDictionary.C index b5eba6831f..e2573e250d 100644 --- a/applications/utilities/miscellaneous/foamDictionary/foamDictionary.C +++ b/applications/utilities/miscellaneous/foamDictionary/foamDictionary.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2016-2022 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2016-2023 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -161,7 +161,7 @@ using namespace Foam; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // //- Read dictionary from file and return -// Sets steam to binary mode if specified in the optional header +// Sets stream to binary mode if specified in the optional header IOstream::streamFormat readDict(dictionary& dict, const fileName& dictFileName) { IOstream::streamFormat dictFormat = IOstream::ASCII;