mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: Using isAbsolute for file name type checks
This commit is contained in:
@ -889,12 +889,12 @@ Foam::chemkinReader::chemkinReader(const dictionary& thermoDict)
|
||||
fileName relPath = thermoDict.name().path();
|
||||
if (relPath.size())
|
||||
{
|
||||
if (chemkinFile.size() && chemkinFile[0] != '/')
|
||||
if (!chemkinFile.isAbsolute())
|
||||
{
|
||||
chemkinFile = relPath/chemkinFile;
|
||||
}
|
||||
|
||||
if (thermoFile.size() && thermoFile[0] != '/')
|
||||
if (!thermoFile.isAbsolute())
|
||||
{
|
||||
thermoFile = relPath/thermoFile;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user