CONFIG: relocate messageStream output level control to an InfoSwitch

- location and naming more consistent with other controls

    old: DebugSwitch  'level'
    new: InfoSwitch   'outputLevel'
This commit is contained in:
Mark Olesen 2021-02-16 13:54:06 +01:00
parent b97cd5c380
commit 531e8ab66d
2 changed files with 9 additions and 3 deletions

View File

@ -36,6 +36,13 @@ InfoSwitches
// The default ASCII write precision
writePrecision 6;
// The output level (verbosity) of messages
// - 0 : suppress all output
// - 1 : normal output
// - >= 2 : report source file and line number (default)
outputLevel 2;
// Report information as baseIOdictionary are read in
writeDictionaries 0;
// Report optional dictionary entries. For value > 1, treat as fatal.
@ -671,7 +678,6 @@ DebugSwitches
lduMesh 0;
leastSquares 0;
leastSquaresVectors 0;
level 2;
limitWith 0;
limited 0;
limitedCubic 0;

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2017-2020 OpenCFD Ltd.
Copyright (C) 2017-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -33,7 +33,7 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
// Default is 2 : report source file name and line number if available
int Foam::messageStream::level(Foam::debug::debugSwitch("level", 2));
int Foam::messageStream::level(Foam::debug::infoSwitch("outputLevel", 2));
int Foam::messageStream::redirect(0);