Skip to content

Commit

Permalink
Add regression test for 1D topology
Browse files Browse the repository at this point in the history
  • Loading branch information
termi-official committed May 5, 2023
1 parent 4da9151 commit 08cd31f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test_grid_dofhandler_vtk.jl
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,18 @@ end
end

@testset "Grid topology" begin
#
# (1) (2) (3) (4)
# +---+---+---+
#
linegrid = generate_grid(Line,(3,))
linetopo = ExclusiveTopology(linegrid)
@test linetopo.vertex_neighbor[1,2] == Ferrite.EntityNeighborhood(VertexIndex(2,1))
@test linetopo.vertex_neighbor[2,1] == Ferrite.EntityNeighborhood(VertexIndex(1,2))
@test linetopo.vertex_neighbor[2,2] == Ferrite.EntityNeighborhood(VertexIndex(3,1))
@test linetopo.vertex_neighbor[3,1] == Ferrite.EntityNeighborhood(VertexIndex(2,2))
@test length(linetopo.face_skeleton) == 4

# (11)
# (10)+-----+-----+(12)
# | 5 | 6 |
Expand Down

0 comments on commit 08cd31f

Please sign in to comment.