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

Function readDict

src/conversion/meshTables/cellTable.C:312–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310
311
312void Foam::cellTable::readDict
313(
314 const objectRegistry& registry,
315 const word& name,
316 const fileName& instance
317)
318{
319 clear();
320
321 // read constant/dictName
322 IOMap<dictionary> ioObj
323 (
324 IOobject
325 (
326 name,
327 instance,
328 registry,
329 IOobject::READ_IF_PRESENT,
330 IOobject::NO_WRITE,
331 false
332 )
333 );
334
335 if (ioObj.headerOk())
336 {
337 *this = ioObj;
338 addDefaults();
339 }
340 else
341 {
342 Info<< "no constant/cellTable information available" << endl;
343 }
344}
345
346
347void Foam::cellTable::writeDict

Callers 1

cellTable.CFile · 0.70

Calls 3

addDefaultsFunction · 0.85
clearFunction · 0.50
IOobjectClass · 0.50

Tested by

no test coverage detected