masterUncollatedFileOperation: Updated to avoid warning from clang
This commit is contained in:
@ -526,7 +526,8 @@ int main(int argc, char *argv[])
|
||||
<< endl;
|
||||
}
|
||||
|
||||
fileOperations::collatedFileOperation::maxThreadFileBufferSize = bufSz;
|
||||
fileOperations::collatedFileOperation::maxThreadFileBufferSize =
|
||||
bufSz;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -459,7 +459,8 @@ masterUncollatedFileOperation
|
||||
if (verbose)
|
||||
{
|
||||
Info<< "I/O : " << typeName
|
||||
<< " (maxMasterFileBufferSize " << maxMasterFileBufferSize << ')' << endl;
|
||||
<< " (maxMasterFileBufferSize " << maxMasterFileBufferSize << ')'
|
||||
<< endl;
|
||||
}
|
||||
|
||||
if (regIOobject::fileModificationChecking == regIOobject::timeStampMaster)
|
||||
@ -703,8 +704,9 @@ Foam::fileName Foam::fileOperations::masterUncollatedFileOperation::filePath
|
||||
// Determine master filePath and scatter
|
||||
|
||||
fileName objPath;
|
||||
pathType searchType;
|
||||
pathType searchType = NOTFOUND;
|
||||
word newInstancePath;
|
||||
|
||||
if (Pstream::master())
|
||||
{
|
||||
objPath = filePathInfo
|
||||
@ -716,11 +718,13 @@ Foam::fileName Foam::fileOperations::masterUncollatedFileOperation::filePath
|
||||
newInstancePath
|
||||
);
|
||||
}
|
||||
|
||||
{
|
||||
label masterType(searchType);
|
||||
Pstream::scatter(masterType);
|
||||
searchType = pathType(masterType);
|
||||
}
|
||||
|
||||
Pstream::scatter(newInstancePath);
|
||||
|
||||
|
||||
@ -780,8 +784,9 @@ Foam::fileName Foam::fileOperations::masterUncollatedFileOperation::dirPath
|
||||
// Determine master dirPath and scatter
|
||||
|
||||
fileName objPath;
|
||||
pathType searchType;
|
||||
pathType searchType = NOTFOUND;
|
||||
word newInstancePath;
|
||||
|
||||
if (Pstream::master())
|
||||
{
|
||||
objPath = filePathInfo
|
||||
@ -793,6 +798,7 @@ Foam::fileName Foam::fileOperations::masterUncollatedFileOperation::dirPath
|
||||
newInstancePath
|
||||
);
|
||||
}
|
||||
|
||||
{
|
||||
label masterType(searchType);
|
||||
Pstream::scatter(masterType);
|
||||
|
||||
@ -46,7 +46,7 @@ namespace fileOperations
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
Foam::fileName Foam::fileOperations::uncollatedFileOperation::doFilePath
|
||||
Foam::fileName Foam::fileOperations::uncollatedFileOperation::filePathInfo
|
||||
(
|
||||
const bool checkGlobal,
|
||||
const bool isFile,
|
||||
@ -357,7 +357,7 @@ Foam::fileName Foam::fileOperations::uncollatedFileOperation::filePath
|
||||
<< " checkGlobal:" << checkGlobal << endl;
|
||||
}
|
||||
|
||||
fileName objPath(doFilePath(checkGlobal, true, io));
|
||||
fileName objPath(filePathInfo(checkGlobal, true, io));
|
||||
|
||||
if (debug)
|
||||
{
|
||||
@ -383,7 +383,7 @@ Foam::fileName Foam::fileOperations::uncollatedFileOperation::dirPath
|
||||
<< " checkGlobal:" << checkGlobal << endl;
|
||||
}
|
||||
|
||||
fileName objPath(doFilePath(checkGlobal, false, io));
|
||||
fileName objPath(filePathInfo(checkGlobal, false, io));
|
||||
|
||||
if (debug)
|
||||
{
|
||||
|
||||
@ -55,7 +55,7 @@ class uncollatedFileOperation
|
||||
//- Search for an object.
|
||||
// checkGlobal : also check undecomposed case
|
||||
// isFile : true:check for file false:check for directory
|
||||
fileName doFilePath
|
||||
fileName filePathInfo
|
||||
(
|
||||
const bool checkGlobal,
|
||||
const bool isFile,
|
||||
|
||||
Reference in New Issue
Block a user