Sign the index corresponding to the map
| 181 | |
| 182 | // Sign the index corresponding to the map |
| 183 | inline label signIndex(const int map, const label i) |
| 184 | { |
| 185 | return map < 0 ? -i-1 : i; |
| 186 | } |
| 187 | |
| 188 | // Reverse a signed index with the number of divisions |
| 189 | inline label unsignIndex(const label i, const label ni) |