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