| 170 | |
| 171 | |
| 172 | void Foam::boundaryRegion::readDict |
| 173 | ( |
| 174 | const objectRegistry& registry, |
| 175 | const word& name, |
| 176 | const fileName& instance |
| 177 | ) |
| 178 | { |
| 179 | clear(); |
| 180 | |
| 181 | // read constant/dictName |
| 182 | IOMap<dictionary> ioObj |
| 183 | ( |
| 184 | IOobject |
| 185 | ( |
| 186 | name, |
| 187 | instance, |
| 188 | registry, |
| 189 | IOobject::READ_IF_PRESENT, |
| 190 | IOobject::NO_WRITE, |
| 191 | false |
| 192 | ) |
| 193 | ); |
| 194 | |
| 195 | if (ioObj.headerOk()) |
| 196 | { |
| 197 | *this = ioObj; |
| 198 | } |
| 199 | else |
| 200 | { |
| 201 | Info<< "no constant/boundaryRegion information available" << endl; |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | |
| 206 | void Foam::boundaryRegion::writeDict |
no test coverage detected