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

Function objects

applications/utilities/mesh/manipulation/setSet/setSet.C:246–267  ·  view source on GitHub ↗
(
        mesh,
        mesh.time()

Source from the content-addressed store, hash-verified

244void printAllSets(const polyMesh& mesh, Ostream& os)
245{
246 IOobjectList objects
247 (
248 mesh,
249 mesh.time().findInstance
250 (
251 polyMesh::meshSubDir/"sets",
252 word::null,
253 IOobject::READ_IF_PRESENT,
254 mesh.facesInstance()
255 ),
256 polyMesh::meshSubDir/"sets"
257 );
258 IOobjectList cellSets(objects.lookupClass(cellSet::typeName));
259 if (cellSets.size())
260 {
261 os << "cellSets:" << endl;
262 forAllConstIter(IOobjectList, cellSets, iter)
263 {
264 cellSet set(*iter());
265 os << '\t' << set.name() << "\tsize:" << set.size() << endl;
266 }
267 }
268 IOobjectList faceSets(objects.lookupClass(faceSet::typeName));
269 if (faceSets.size())
270 {

Callers

nothing calls this directly

Calls 5

objectPathMethod · 0.80
forAllConstIterFunction · 0.50
rmFunction · 0.50
nameMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected