Skip to content

Commit

Permalink
tag boundary nodes of basic_mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainb committed Dec 18, 2023
1 parent 8cf3887 commit fdbc642
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mesh/mesh_generator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ function basic_mesh(; coef_x = 1.0, coef_y = 1.0)
# cell->node connectivity indices :
cell2node = Connectivity([4, 4, 3], [1, 2, 6, 5, 2, 3, 7, 6, 3, 4, 7])

return Mesh(nodes, celltypes, cell2node)
# Prepare boundary nodes
bnd_name = "BORDER"
tag2name = Dict(1 => bnd_name)
tag2nodes = Dict(1 => collect(1:7))

return Mesh(nodes, celltypes, cell2node; bc_names = tag2name, bc_nodes = tag2nodes)
end

"""
Expand Down

0 comments on commit fdbc642

Please sign in to comment.