| 112 | |
| 113 | |
| 114 | const Foam::keyType& Foam::blockMeshTools::findEntry |
| 115 | ( |
| 116 | const dictionary& dict, |
| 117 | const label val |
| 118 | ) |
| 119 | { |
| 120 | forAllConstIter(dictionary, dict, iter) |
| 121 | { |
| 122 | if (iter().isStream()) |
| 123 | { |
| 124 | label keyVal(Foam::readLabel(iter().stream())); |
| 125 | if (keyVal == val) |
| 126 | { |
| 127 | return iter().keyword(); |
| 128 | } |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | return keyType::null; |
| 133 | } |
| 134 | |
| 135 | |
| 136 | // ************************************************************************* // |
nothing calls this directly
no test coverage detected