messageStream: Added support for suppressing the printing of log header

This generalizes and replaces the previous "noBanner" option provided by argList
and is extended to include the messages printed by Time.

Resolves bug-report https://bugs.openfoam.org/view.php?id=2782
This commit is contained in:
Henry Weller
2017-12-06 11:58:35 +00:00
parent e85eb48ba7
commit cc4d4433b8
10 changed files with 49 additions and 44 deletions

View File

@ -26,7 +26,6 @@ Application
Description
\*---------------------------------------------------------------------------*/
#include "argList.H"
@ -62,7 +61,8 @@ void printCleaning(fileName& pathName)
int main(int argc, char *argv[])
{
argList::noBanner();
writeInfoHeader = false;
argList::noParallel();
argList::validArgs.insert("fileName .. fileNameN");
argList::addOption("istream", "file", "test Istream values");

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -35,7 +35,8 @@ using namespace Foam;
int main(int argc, char *argv[])
{
argList::noBanner();
writeInfoHeader = false;
argList::noParallel();
argList::validArgs.insert("file .. fileN");