Reverse a signed index with the number of divisions
| 187 | |
| 188 | // Reverse a signed index with the number of divisions |
| 189 | inline label unsignIndex(const label i, const label ni) |
| 190 | { |
| 191 | return i >= 0 ? i : ni + i + 1; |
| 192 | } |
| 193 | |
| 194 | // Return the mapped index |
| 195 | inline label mapij(const int map, const label i, const label j) |