We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c1a87a commit 07a8238Copy full SHA for 07a8238
parcels/spatialhash.py
@@ -138,8 +138,7 @@ 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 abs(xi1[eid] - xi2[eid]) > 225:
142
- # TODO make sure this is only called when mesh_type is spherical; but requires #2155
+ if self._source_grid.mesh == "spherical" and abs(xi1[eid] - xi2[eid]) > 225:
143
pass
144
elif xi1[eid] <= xi2[eid]:
145
# Normal case, no wrap
0 commit comments