bin/tools/RunFunctions: avoid messages from codeStream causing getApplication to fail

Resolves bug-report https://bugs.openfoam.org/view.php?id=2933
This commit is contained in:
Henry Weller
2018-05-15 17:07:53 +01:00
parent a788929a53
commit ad32e5ceb9
2 changed files with 4 additions and 7 deletions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation \\ / A nd | Copyright (C) 2016-2018 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -298,11 +298,8 @@ int main(int argc, char *argv[])
Foam::functionEntries::includeEntry::log = true; Foam::functionEntries::includeEntry::log = true;
} }
const bool disableEntries = args.optionFound("disableFunctionEntries"); if (args.optionFound("disableFunctionEntries"))
if (disableEntries)
{ {
Info<< "Not expanding variables or dictionary directives"
<< endl;
entry::disableFunctionEntries = true; entry::disableFunctionEntries = true;
} }

View File

@ -41,12 +41,12 @@ isTest()
getNumberOfProcessors() getNumberOfProcessors()
{ {
foamDictionary -entry numberOfSubdomains -value system/decomposeParDict foamDictionary -disableFunctionEntries -entry numberOfSubdomains -value system/decomposeParDict
} }
getApplication() getApplication()
{ {
foamDictionary -entry application -value system/controlDict foamDictionary -disableFunctionEntries -entry application -value system/controlDict
} }
runApplication() runApplication()