From a95d917b085a331342d62cdf2fddbf50c7ef28ec Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Sat, 9 May 2026 18:12:20 +0300 Subject: [PATCH] fix(mesh): keyword Mesh constructor in structured Hex8 builder Document that only structured bricks are supported here and route box mesh construction through the keyword outer constructor. - Clarify the `Hex8`-only structured entry point in the docstring. - Replace positional `Mesh{Hex8}(..., sets...)` with keyword `element_sets` / `node_sets` arguments. --- src/mesh/structured.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesh/structured.jl b/src/mesh/structured.jl index 4551194..7e9626a 100644 --- a/src/mesh/structured.jl +++ b/src/mesh/structured.jl @@ -10,7 +10,7 @@ Create a structured box mesh with Hex8 elements. # Arguments -- `::Type{Hex8}`: Element topology type (only Hex8 supported currently) +- `::Type{Hex8}`: Structured brick topology only (no structured `Tet4` box mesh in this entry point) # Keyword Arguments - `xmin`, `xmax`: Domain bounds in X direction (default: 0.0, 1.0) @@ -162,7 +162,7 @@ function create_structured_box_mesh( node_sets[:zmin] = zmin_nodes node_sets[:zmax] = zmax_nodes - return Mesh{Hex8}(nodes, connectivity, element_sets, node_sets) + return Mesh{Hex8}(nodes, connectivity; element_sets=element_sets, node_sets=node_sets) end """