Skip to content

Commit

Permalink
Merge pull request #48 from bcube-project/fix_mesh3d_tetra
Browse files Browse the repository at this point in the history
fix `Tetra4` for 3D mesh
  • Loading branch information
bmxam authored Feb 22, 2024
2 parents d81437d + dbb757f commit f3166cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/mesh/entity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ end
end
@inline nfaces(t::Type{Tetra4_t}) = 4
@inline faces2nodes(::Type{Tetra4_t}) = ((1, 3, 2), (1, 2, 4), (2, 3, 4), (3, 1, 4))
@inline facetypes(::Type{Tetra4_t}) = (Tri3_t(), Tri3_t(), Tri3_t())
@inline facetypes(::Type{Tetra4_t}) = (Tri3_t(), Tri3_t(), Tri3_t(), Tri3_t())

#---- Tetra10 ----
@inline nnodes(::Type{Tetra10_t}) = 10
Expand Down
1 change: 1 addition & 0 deletions src/mesh/gmsh_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const GMSHTYPE = Dict(
1 => Bar2_t(),
2 => Tri3_t(),
3 => Quad4_t(),
4 => Tetra4_t(),
5 => Hexa8_t(),
6 => Penta6_t(),
9 => Tri6_t(),
Expand Down

0 comments on commit f3166cc

Please sign in to comment.