MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / readHeader

Function readHeader

src/conversion/meshReader/starcd/STARCDMeshReader.C:68–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67
68bool 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
96void Foam::meshReaders::STARCD::readAux(const objectRegistry& registry)

Callers 4

readPointsFunction · 0.70
readCellsFunction · 0.70
readBoundaryFunction · 0.70
STARCDMeshReader.CFile · 0.70

Calls 4

readToNewlineFunction · 0.85
abortFunction · 0.50
goodMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected