Skip to content

Commit

Permalink
Testing agglomeration on flat plate.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cooper committed Jul 14, 2023
1 parent 101ea22 commit 8be86d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_agglomeration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from torch_quadconv.utils.agglomeration import agglomerate
from torch_quadconv.mesh_handler import Elements

with h5.File("data/mesh.hdf5", "r") as file:
with h5.File("data/flat_plate_2d_cut/mesh.hdf5", "r") as file:
points = file["points"][...]
bd_point_ind = file["elements"]["boundary_point_indices"][...]
element_pos = file["elements"]["element_positions"][...]
Expand All @@ -16,7 +16,7 @@
print(f"Element Positions: {element_pos.shape[0]-1}, {element_pos[-1]}, {np.max(element_pos)}")
print(f"Elements Indices: {element_ind.shape[0]}, {3*(element_pos.shape[0]-1)}, {np.max(element_ind)}")

levels = 1
levels = 2
factor = 100

#check aligned, writeable, and C contiguous
Expand Down

0 comments on commit 8be86d3

Please sign in to comment.