mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-20 18:18:31 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user