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

Function check

src/meshTools/sets/topoSets/topoSet.C:183–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181
182
183void Foam::topoSet::check(const label maxLabel)
184{
185 forAllConstIter(topoSet, *this, iter)
186 {
187 if ((iter.key() < 0) || (iter.key() > maxLabel))
188 {
189 FatalErrorInFunction
190 << "Illegal content " << iter.key() << " of set:" << name()
191 << " of type " << type() << endl
192 << "Value should be between 0 and " << maxLabel
193 << abort(FatalError);
194 }
195 }
196}
197
198
199// Write maxElem elements, starting at iter. Updates iter and elemI.

Callers 6

pointSet.CFile · 0.70
faceZoneSet.CFile · 0.70
pointZoneSet.CFile · 0.70
cellSet.CFile · 0.70
faceSet.CFile · 0.70
cellZoneSet.CFile · 0.70

Calls 5

forAllConstIterFunction · 0.50
nameFunction · 0.50
typeEnum · 0.50
abortFunction · 0.50
keyMethod · 0.45

Tested by

no test coverage detected