fileHandler::collatedFileOperation: Added useful message concerning threading control
This commit is contained in:
parent
611f2da837
commit
5f1a8f824b
1 changed files with 22 additions and 0 deletions
|
|
@ -183,6 +183,27 @@ Foam::fileOperations::collatedFileOperation::collatedFileOperation
|
|||
Info<< "I/O : " << typeName
|
||||
<< " (maxThreadFileBufferSize " << maxThreadFileBufferSize
|
||||
<< ')' << endl;
|
||||
|
||||
if (maxThreadFileBufferSize == 0)
|
||||
{
|
||||
Info<< " Threading not activated "
|
||||
"since maxThreadFileBufferSize = 0." << nl
|
||||
<< " Writing may run slowly for large file sizes."
|
||||
<< endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
Info<< " Threading activated "
|
||||
"since maxThreadFileBufferSize > 0." << nl
|
||||
<< " Requires thread support enabled in MPI, "
|
||||
"otherwise the simulation" << nl
|
||||
<< " may \"hang\". If thread support cannot be "
|
||||
"enabled, deactivate threading" << nl
|
||||
<< " by setting maxThreadFileBufferSize to 0 in "
|
||||
"$FOAM_ETC/controlDict"
|
||||
<< endl;
|
||||
}
|
||||
|
||||
if
|
||||
(
|
||||
regIOobject::fileModificationChecking
|
||||
|
|
@ -192,6 +213,7 @@ Foam::fileOperations::collatedFileOperation::collatedFileOperation
|
|||
WarningInFunction
|
||||
<< "Resetting fileModificationChecking to inotify" << endl;
|
||||
}
|
||||
|
||||
if
|
||||
(
|
||||
regIOobject::fileModificationChecking
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue