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

Function objects

src/sampling/probes/probesGrouping.C:119–151  ·  view source on GitHub ↗

check files for a particular time

(mesh_, mesh_.time()

Source from the content-addressed store, hash-verified

117 {
118 // check files for a particular time
119 IOobjectList objects(mesh_, mesh_.time().timeName());
120 wordList allFields = objects.sortedNames();
121
122 labelList indices = findStrings(fieldSelection_, allFields);
123
124 forAll(indices, fieldi)
125 {
126 const word& fieldName = allFields[indices[fieldi]];
127
128 nFields += appendFieldGroup
129 (
130 fieldName,
131 objects.find(fieldName)()->headerClassName()
132 );
133 }
134 }
135 else
136 {
137 // check currently available fields
138 wordList allFields = mesh_.sortedNames();
139 labelList indices = findStrings(fieldSelection_, allFields);
140
141 forAll(indices, fieldi)
142 {
143 const word& fieldName = allFields[indices[fieldi]];
144
145 nFields += appendFieldGroup
146 (
147 fieldName,
148 mesh_.find(fieldName)()->type()
149 );
150 }
151 }
152
153 return nFields;
154}

Callers

nothing calls this directly

Calls 3

findStringsFunction · 0.85
forAllFunction · 0.50
typeMethod · 0.45

Tested by

no test coverage detected