| 310 | |
| 311 | |
| 312 | void 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 | |
| 347 | void Foam::cellTable::writeDict |
no test coverage detected