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

Function readDict

src/conversion/meshTables/boundaryRegion.C:172–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170
171
172void 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
206void Foam::boundaryRegion::writeDict

Callers 1

boundaryRegion.CFile · 0.70

Calls 2

clearFunction · 0.50
IOobjectClass · 0.50

Tested by

no test coverage detected