Skip to content
Snippets Groups Projects
Commit 531e8ab6 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

CONFIG: relocate messageStream output level control to an InfoSwitch

- location and naming more consistent with other controls

    old: DebugSwitch  'level'
    new: InfoSwitch   'outputLevel'
parent b97cd5c3
Branches
Tags
No related merge requests found
...@@ -36,6 +36,13 @@ InfoSwitches ...@@ -36,6 +36,13 @@ InfoSwitches
// The default ASCII write precision // The default ASCII write precision
writePrecision 6; 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; writeDictionaries 0;
// Report optional dictionary entries. For value > 1, treat as fatal. // Report optional dictionary entries. For value > 1, treat as fatal.
...@@ -671,7 +678,6 @@ DebugSwitches ...@@ -671,7 +678,6 @@ DebugSwitches
lduMesh 0; lduMesh 0;
leastSquares 0; leastSquares 0;
leastSquaresVectors 0; leastSquaresVectors 0;
level 2;
limitWith 0; limitWith 0;
limited 0; limited 0;
limitedCubic 0; limitedCubic 0;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2017-2020 OpenCFD Ltd. Copyright (C) 2017-2021 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -33,7 +33,7 @@ License ...@@ -33,7 +33,7 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
// Default is 2 : report source file name and line number if available // 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); int Foam::messageStream::redirect(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment