ENH: use DetailInfo for fileOperation I/O information

- allows suppression when the banner is suppressed
This commit is contained in:
Mark Olesen
2020-01-22 20:46:37 +01:00
parent 16e8d29476
commit 860e7df50b
4 changed files with 42 additions and 31 deletions

View File

@ -153,7 +153,7 @@ then
# - libPVFoamReader_SM = (OPENFOAM <= 1912)
case "$plugin" in
blockReader)
(blockReader)
for libName in \
ParaFoamBlockReader \
libParaFoamBlockReader \
@ -167,7 +167,7 @@ then
fi
done
;;
foamReader)
(foamReader)
for libName in \
ParaFoamReader \
libParaFoamReader \
@ -329,7 +329,7 @@ else
# Check existence of essential files
warn=false
case "$plugin" in
blockReader)
(blockReader)
blockMeshDict=system/blockMeshDict
if [ -f constant/polyMesh/blockMeshDict ]
then
@ -339,7 +339,7 @@ else
hasFiles system/controlDict "$blockMeshDict" || warn=true
;;
foamReader)
(foamReader)
hasFiles \
system/controlDict \
"$fvControls/fvSchemes" \

View File

@ -6,6 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2017-2018 OpenFOAM Foundation
Copyright (C) 2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -273,20 +274,23 @@ Foam::fileOperations::collatedFileOperation::collatedFileOperation
if (verbose)
{
Info<< "I/O : " << typeName
DetailInfo
<< "I/O : " << typeName
<< " (maxThreadFileBufferSize " << maxThreadFileBufferSize
<< ')' << endl;
if (maxThreadFileBufferSize == 0)
{
Info<< " Threading not activated "
DetailInfo
<< " Threading not activated "
"since maxThreadFileBufferSize = 0." << nl
<< " Writing may run slowly for large file sizes."
<< endl;
}
else
{
Info<< " Threading activated "
DetailInfo
<< " Threading activated "
"since maxThreadFileBufferSize > 0." << nl
<< " Requires large enough buffer to collect all data"
" or thread support " << nl
@ -308,12 +312,15 @@ Foam::fileOperations::collatedFileOperation::collatedFileOperation
}
Pstream::gatherList(ioRanks);
Info<< " IO nodes:" << nl;
DetailInfo
<< " IO nodes:" << nl;
for (const string& ranks : ioRanks)
{
if (!ranks.empty())
{
Info<< " " << ranks << nl;
DetailInfo
<< " " << ranks << nl;
}
}
}
@ -360,20 +367,23 @@ Foam::fileOperations::collatedFileOperation::collatedFileOperation
if (verbose)
{
Info<< "I/O : " << typeName
DetailInfo
<< "I/O : " << typeName
<< " (maxThreadFileBufferSize " << maxThreadFileBufferSize
<< ')' << endl;
if (maxThreadFileBufferSize == 0)
{
Info<< " Threading not activated "
DetailInfo
<< " Threading not activated "
"since maxThreadFileBufferSize = 0." << nl
<< " Writing may run slowly for large file sizes."
<< endl;
}
else
{
Info<< " Threading activated "
DetailInfo
<< " Threading activated "
"since maxThreadFileBufferSize > 0." << nl
<< " Requires large enough buffer to collect all data"
" or thread support " << nl

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2017-2018 OpenFOAM Foundation
Copyright (C) 2019 OpenCFD Ltd.
Copyright (C) 2019-2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -774,7 +774,7 @@ masterUncollatedFileOperation
if (verbose)
{
Info
DetailInfo
<< "I/O : " << typeName
<< " (maxMasterFileBufferSize " << maxMasterFileBufferSize << ')'
<< endl;
@ -820,7 +820,7 @@ masterUncollatedFileOperation
if (verbose)
{
Info
DetailInfo
<< "I/O : " << typeName
<< " (maxMasterFileBufferSize " << maxMasterFileBufferSize << ')'
<< endl;

View File

@ -6,6 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2017 OpenFOAM Foundation
Copyright (C) 2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.