From 169e482066a4682d81bf712e4e13a77b71c74fd6 Mon Sep 17 00:00:00 2001 From: Mark Olesen <Mark.Olesen@esi-group.com> Date: Mon, 16 Mar 2020 14:35:30 +0100 Subject: [PATCH] BUG: missing output for foamDictionary -includes (closes #1635) - log to stdout when explicitly enabled --- .../functionEntries/includeEntry/includeEntry.C | 8 +++++--- .../functionEntries/includeEtcEntry/includeEtcEntry.C | 7 +++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/OpenFOAM/db/dictionary/functionEntries/includeEntry/includeEntry.C b/src/OpenFOAM/db/dictionary/functionEntries/includeEntry/includeEntry.C index 47b45198023..d61d6f2cbdc 100644 --- a/src/OpenFOAM/db/dictionary/functionEntries/includeEntry/includeEntry.C +++ b/src/OpenFOAM/db/dictionary/functionEntries/includeEntry/includeEntry.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -144,7 +144,8 @@ bool Foam::functionEntries::includeEntry::execute { if (Foam::functionEntries::includeEntry::log) { - DetailInfo << fName << endl; + // Report to stdout which file is included + Info<< fName << nl; } // Add watch on included file @@ -189,7 +190,8 @@ bool Foam::functionEntries::includeEntry::execute { if (Foam::functionEntries::includeEntry::log) { - DetailInfo << fName << endl; + // Report to stdout which file is included + Info<< fName << nl; } // Add watch on included file diff --git a/src/OpenFOAM/db/dictionary/functionEntries/includeEtcEntry/includeEtcEntry.C b/src/OpenFOAM/db/dictionary/functionEntries/includeEtcEntry/includeEtcEntry.C index 9b512fd8f3e..e692adb4c4a 100644 --- a/src/OpenFOAM/db/dictionary/functionEntries/includeEtcEntry/includeEtcEntry.C +++ b/src/OpenFOAM/db/dictionary/functionEntries/includeEtcEntry/includeEtcEntry.C @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2015-2017 OpenFOAM Foundation + Copyright (C) 2019-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -104,7 +105,8 @@ bool Foam::functionEntries::includeEtcEntry::execute { if (Foam::functionEntries::includeEtcEntry::log) { - DetailInfo << fName << endl; + // Report to stdout which file is included + Info<< fName << nl; } parentDict.read(ifs); return true; @@ -137,7 +139,8 @@ bool Foam::functionEntries::includeEtcEntry::execute { if (Foam::functionEntries::includeEtcEntry::log) { - DetailInfo << fName << endl; + // Report to stdout which file is included + Info<< fName << nl; } entry.read(parentDict, ifs); return true; -- GitLab