fix(elements): Update Poi1 to non-parametric AbstractBasis

Changes to src/elements/elements_lagrange.jl:
- Changed Poi1 from AbstractBasis{0} to AbstractBasis (non-parametric)
- Added nnodes(::Type{Poi1}) = 1 method
- Added nnodes(::Poi1) = 1 instance method
- Added comment explaining Poi1 as 0D point element
- Resolves type parameter mismatch with new AbstractBasis definition
This commit is contained in:
Jukka Aho
2025-11-09 21:03:39 +02:00
parent a6c692d074
commit a332d79736
+6 -1
View File
@@ -1,7 +1,12 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/FEMBase.jl/blob/master/LICENSE
struct Poi1 <: AbstractBasis{0} end
# Poi1: 0D point element (single node, no parametric coordinates)
struct Poi1 <: AbstractBasis end
# nnodes for Poi1
nnodes(::Type{Poi1}) = 1
nnodes(::Poi1) = 1
function get_basis(::E, ::Any, ::Any) where E<:AbstractElement{M,Poi1} where M
return [1]