diff --git a/src/mesh/mesh_generator.jl b/src/mesh/mesh_generator.jl index c5093b02..1a74d0e3 100644 --- a/src/mesh/mesh_generator.jl +++ b/src/mesh/mesh_generator.jl @@ -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 """