Skip to content

Commit

Permalink
updated benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronzedwick committed Jan 15, 2025
1 parent 66fba3d commit f1caa3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions benchmarks/mpas_ocean.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ def teardown(self, resolution):
del self.uxgrid

def time_whole_grid(self, resolution):
for i in range(len(self.uxgrid.face_x.values)):
point_xyz = np.array([self.uxgrid.face_x[i].values, self.uxgrid.face_y[i].values, self.uxgrid.face_z[i].values])
point_xyz = np.array([self.uxgrid.face_x[0].values, self.uxgrid.face_y[0].values, self.uxgrid.face_z[0].values])

self.uxgrid.get_faces_containing_point(point_xyz=point_xyz)
self.uxgrid.get_faces_containing_point(point_xyz=point_xyz)
2 changes: 1 addition & 1 deletion uxarray/grid/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -2448,7 +2448,7 @@ def get_faces_containing_point(self, point_xyz):
"""Gets the indexes of the faces that contain a specific point"""

# Get the maximum face radius of the grid
max_face_radius = self.max_face_radius
max_face_radius = self.max_face_radius.values
_ = self.face_edge_nodes_xyz

subset = self.subset.bounding_circle(
Expand Down

0 comments on commit f1caa3f

Please sign in to comment.