Skip to content

Commit

Permalink
Use Python wrapped compute_colliding_cells (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanguinariojoe authored May 17, 2023
1 parent f60fcb4 commit d062473
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion demo/demo_kirchhoff-love-clamped.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def all_boundary(x):
bb_tree = dolfinx.geometry.BoundingBoxTree(mesh, 2)
point = np.array([0.5, 0.5, 0.0], dtype=np.float64)
cell_candidates = dolfinx.geometry.compute_collisions(bb_tree, point)
cells = dolfinx.cpp.geometry.compute_colliding_cells(
cells = dolfinx.geometry.compute_colliding_cells(
mesh, cell_candidates, point)

w, M = u_h.split()
Expand Down
2 changes: 1 addition & 1 deletion demo/demo_reissner-mindlin-clamped-tdnns.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def all_boundary(x):
bb_tree = dolfinx.geometry.BoundingBoxTree(mesh, 2)
point = np.array([0.5, 0.5, 0.0], dtype=np.float64)
cell_candidates = dolfinx.geometry.compute_collisions(bb_tree, point)
cells = dolfinx.cpp.geometry.compute_colliding_cells(
cells = dolfinx.geometry.compute_colliding_cells(
mesh, cell_candidates, point)

theta, w, M = u_h.split()
Expand Down
2 changes: 1 addition & 1 deletion demo/demo_reissner-mindlin-clamped.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def all_boundary(x):
bb_tree = dolfinx.geometry.BoundingBoxTree(mesh, 2)
point = np.array([0.5, 0.5, 0.0], dtype=np.float64)
cell_candidates = dolfinx.geometry.compute_collisions(bb_tree, point)
cells = dolfinx.cpp.geometry.compute_colliding_cells(
cells = dolfinx.geometry.compute_colliding_cells(
mesh, cell_candidates, point)

theta, w, R_gamma, p = u_.split()
Expand Down
2 changes: 1 addition & 1 deletion demo/demo_reissner-mindlin-simply-supported.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def make_bc(value, V, on_boundary):
bb_tree = dolfinx.geometry.BoundingBoxTree(mesh, 2)
point = np.array([0.5, 0.5, 0.0], dtype=np.float64)
cell_candidates = dolfinx.geometry.compute_collisions(bb_tree, point)
cells = dolfinx.cpp.geometry.compute_colliding_cells(
cells = dolfinx.geometry.compute_colliding_cells(
mesh, cell_candidates, point)

theta, w, R_gamma, p = u_.split()
Expand Down

0 comments on commit d062473

Please sign in to comment.