From d247e330a3e5ecb0d3fe82560b9acaab964f18cf Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Sat, 9 May 2026 18:22:34 +0300 Subject: [PATCH] refactor(topology): dedupe Tetrahedron nnodes and exports Centralize `nnodes` on `AbstractTopology{N}`, fix LICENSE URL, and trim exports already declared in `exports.jl`. - Drop redundant `nnodes`/`export` lines from `tetrahedra.jl`. --- src/topology/tetrahedra.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/topology/tetrahedra.jl b/src/topology/tetrahedra.jl index 682331e..fca8f36 100644 --- a/src/topology/tetrahedra.jl +++ b/src/topology/tetrahedra.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 """ Tetrahedron{N} <: AbstractTopology{N} @@ -15,7 +15,6 @@ struct Tetrahedron{N} <: AbstractTopology{N} end const Tet4 = Tetrahedron{4} const Tet10 = Tetrahedron{10} -nnodes(::Tetrahedron{N}) where {N} = N dim(::Tetrahedron{N}) where {N} = 3 function reference_coordinates(::Tetrahedron{4}) @@ -74,4 +73,3 @@ nvertices(::Tetrahedron) = 4 nedges(::Tetrahedron) = 6 nfaces(::Tetrahedron) = 4 -export Tet4, Tet10