bool Foam::fileOperations::masterFileOperation::readHeader ( const bool checkGlobal, IOobject& io ) const { bool ok = false; Pout<< "Starting readHeader for:" << io.objectPath() << endl; if (Pstream::master()) { fileName objPath; pathType searchType = fileOperation::NOTFOUND; word newInstancePath; fileName fName(filePath(checkGlobal, io, searchType, newInstancePath)); Pout<< "readHeader actual file:" << fName << endl; if (!fName.empty() && Foam::isFile(fName)) { IFstream is(fName); if (is.good() && io.readHeader(is)) { ok = true; } } } Pstream::scatter(ok); Pstream::scatter(io.headerClassName()); Pstream::scatter(io.note()); Pout<< "Done readHeader ok:" << ok << endl; return ok; }