Skip to content

Commit 07a8238

Browse files
Updating spherical mash hashmap creation
Since #2155 is now merged
1 parent 7c1a87a commit 07a8238

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

parcels/spatialhash.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ def _initialize_face_hash_table(self):
138138
nface = (self._source_grid.xdim) * (self._source_grid.ydim)
139139
for eid in range(nface):
140140
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
141+
if self._source_grid.mesh == "spherical" and abs(xi1[eid] - xi2[eid]) > 225:
143142
pass
144143
elif xi1[eid] <= xi2[eid]:
145144
# Normal case, no wrap

0 commit comments

Comments
 (0)