Skip to content

Commit

Permalink
Added broken tests to BoundaryDiscreteModelsTests.jl
Browse files Browse the repository at this point in the history
The current implementation of BoundaryDiscreteModelsTests.jl
does not allow for a different ordering of the cells than the one
in the model from which it is created
  • Loading branch information
amartinhuertas committed Aug 31, 2021
1 parent f1ad186 commit e2a12ba
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/GeometryTests/BoundaryDiscreteModelsTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,16 @@ n_∂Γ = get_normal_vector(∂Γ)
@test ((n_ΓVectorValue(0.0,0.0,1.0))d∂Γ) 3.0
@test ((n_∂ΓVectorValue(0.0,0.0,1.0))d∂Γ) -1.0

domain = (0,1,0,1,0,1)
cells = (1,1,1)
bgmodel = CartesianDiscreteModel(domain,cells)
model = BoundaryDiscreteModel(Polytope{2},bgmodel,Int32[3,4,5,6,1,2])
topo = get_grid_topology(model)
cell_vertices = get_faces(topo,2,0)
@test_broken cell_vertices[3] == [1,2,3,4]
@test_broken cell_vertices[4] == [5,6,7,8]
@test_broken cell_vertices[5] == [1,2,5,6]
@test_broken cell_vertices[6] == [3,4,7,8]
@test_broken cell_vertices[1] == [1,3,5,7]
@test_broken cell_vertices[2] == [2,4,6,8]
end

0 comments on commit e2a12ba

Please sign in to comment.