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; 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); }