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

Function read

applications/test/IOField/Test-IOField.C:53–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53void read(const IOobject& io, const label sz)
54{
55 bool valid = (sz > 0);
56 Pout<< " valid:" << valid << endl;
57 IOField<label> fld(io, valid);
58 Pout<< " wanted:" << sz << " actually read:" << fld.size() << endl;
59
60 if (fld.size() != sz)
61 {
62 FatalErrorInFunction<< "io:" << io.objectPath() << exit(FatalError);
63 }
64}
65
66
67void writeAndRead

Callers 2

writeAndReadFunction · 0.70
readIfPresentFunction · 0.70

Calls 3

objectPathMethod · 0.80
exitFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected