mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
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:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2016-2018 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -298,11 +298,8 @@ int main(int argc, char *argv[])
|
||||
Foam::functionEntries::includeEntry::log = true;
|
||||
}
|
||||
|
||||
const bool disableEntries = args.optionFound("disableFunctionEntries");
|
||||
if (disableEntries)
|
||||
if (args.optionFound("disableFunctionEntries"))
|
||||
{
|
||||
Info<< "Not expanding variables or dictionary directives"
|
||||
<< endl;
|
||||
entry::disableFunctionEntries = true;
|
||||
}
|
||||
|
||||
|
||||
@ -41,12 +41,12 @@ isTest()
|
||||
|
||||
getNumberOfProcessors()
|
||||
{
|
||||
foamDictionary -entry numberOfSubdomains -value system/decomposeParDict
|
||||
foamDictionary -disableFunctionEntries -entry numberOfSubdomains -value system/decomposeParDict
|
||||
}
|
||||
|
||||
getApplication()
|
||||
{
|
||||
foamDictionary -entry application -value system/controlDict
|
||||
foamDictionary -disableFunctionEntries -entry application -value system/controlDict
|
||||
}
|
||||
|
||||
runApplication()
|
||||
|
||||
Reference in New Issue
Block a user