We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd69147 commit 1a64033Copy full SHA for 1a64033
parcels/spatialhash.py
@@ -138,7 +138,9 @@ def _initialize_face_hash_table(self):
138
nface = (self._source_grid.xdim) * (self._source_grid.ydim)
139
for eid in range(nface):
140
for j in range(yi1[eid], yi2[eid] + 1):
141
- if xi1[eid] <= xi2[eid]:
+ if abs(xi1[eid] - xi2[eid]) > 225:
142
+ pass
143
+ elif xi1[eid] <= xi2[eid]:
144
# Normal case, no wrap
145
for i in range(xi1[eid], xi2[eid] + 1):
146
index_to_face[(i % self._nx) + self._nx * j].append(eid)
0 commit comments