| 66 | |
| 67 | |
| 68 | bool Foam::meshReaders::STARCD::readHeader(IFstream& is, word fileSignature) |
| 69 | { |
| 70 | if (!is.good()) |
| 71 | { |
| 72 | FatalErrorInFunction |
| 73 | << abort(FatalError); |
| 74 | } |
| 75 | |
| 76 | word header; |
| 77 | label majorVersion; |
| 78 | |
| 79 | is >> header; |
| 80 | is >> majorVersion; |
| 81 | |
| 82 | // skip the rest of the line |
| 83 | readToNewline(is); |
| 84 | |
| 85 | // add other checks ... |
| 86 | if (header != fileSignature) |
| 87 | { |
| 88 | Info<< "header mismatch " << fileSignature << " " << is.name() |
| 89 | << endl; |
| 90 | } |
| 91 | |
| 92 | return true; |
| 93 | } |
| 94 | |
| 95 | |
| 96 | void Foam::meshReaders::STARCD::readAux(const objectRegistry& registry) |
no test coverage detected