| 181 | |
| 182 | |
| 183 | void 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. |
no test coverage detected