BUG: argList: disable checking for exact path; rely on fileHandler instead

This commit is contained in:
mattijs
2017-09-06 21:58:08 +01:00
committed by Andrew Heather
parent fb20bc107e
commit 7cad29f7c8

View File

@ -1384,10 +1384,9 @@ bool Foam::argList::checkRootCase() const
return false;
}
fileName pathDir(fileHandler().filePath(path()));
if ((checkProcessorDirectories_ && pathDir.empty()) && Pstream::master())
if (checkProcessorDirectories_ && pathDir.empty() && Pstream::master())
{
// Allow slaves on non-existing processor directories, created later
// (e.g. redistributePar)
@ -1398,18 +1397,6 @@ bool Foam::argList::checkRootCase() const
return false;
}
else
{
if (!isDir(path()))
{
FatalError
<< executable_
<< ": cannot open case directory " << path()
<< endl;
return false;
}
}
return true;
}