fixed inverted directory-test logic in IOobject.C

This commit is contained in:
Mark Olesen
2009-07-09 08:57:59 +02:00
committed by andy
parent 222d3e41f6
commit 0fa8ffcf7a

View File

@ -36,7 +36,7 @@ defineTypeNameAndDebug(Foam::IOobject, 0);
// Return components following the IOobject requirements // Return components following the IOobject requirements
// //
// behaviour // behaviour
// input IOobject(instance, local, name) // input IOobject(instance, local, name)
// ----- ------ // ----- ------
// "foo" ("", "", "foo") // "foo" ("", "", "foo")
@ -58,7 +58,7 @@ bool Foam::IOobject::IOobject::fileNameComponents
name.clear(); name.clear();
// called with directory // called with directory
if (!isDir(path)) if (isDir(path))
{ {
WarningIn("IOobject::fileNameComponents(const fileName&, ...)") WarningIn("IOobject::fileNameComponents(const fileName&, ...)")
<< " called with directory: " << path << "\n"; << " called with directory: " << path << "\n";