From 4f8c6b493ca6d6dfc654da9d874afd8461c7cdb8 Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Sat, 9 May 2026 18:22:06 +0300 Subject: [PATCH] refactor(topology): centralize Hexahedron nnodes and trim exports Rely on `nnodes(::AbstractTopology{N}) = N` from `topology/api.jl`, fix the LICENSE deep link, and drop redundant `export` lines now covered by `exports.jl`. - Remove per-type `nnodes(::Hexahedron{N})` overloads and file-level exports. --- src/topology/hexahedra.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/topology/hexahedra.jl b/src/topology/hexahedra.jl index fbde93d..ea4c6c5 100644 --- a/src/topology/hexahedra.jl +++ b/src/topology/hexahedra.jl @@ -1,5 +1,5 @@ # This file is a part of JuliaFEM. -# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE +# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md """ Hexahedron{N} <: AbstractTopology{N} @@ -17,7 +17,6 @@ const Hex8 = Hexahedron{8} const Hex20 = Hexahedron{20} const Hex27 = Hexahedron{27} -nnodes(::Hexahedron{N}) where {N} = N dim(::Hexahedron{N}) where {N} = 3 function reference_coordinates(::Hexahedron{8}) @@ -100,4 +99,3 @@ nvertices(::Hexahedron) = 8 nedges(::Hexahedron) = 12 nfaces(::Hexahedron) = 6 -export Hex8, Hex20, Hex27