diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c56d51..4edf354 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGES +## v1.2.1 July 09, 2025 + - some bugfixes related to new template parameter from 1.2.0 + - @show of FEVectorBlock does not crash anymore + ## v1.2.0 July 07, 2025 - major documentation and docstring overhaul - improved show functions and constructors for FEMatrix, FEVector diff --git a/Project.toml b/Project.toml index 9beed4e..77951b1 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ExtendableFEMBase" uuid = "12fb9182-3d4c-4424-8fd1-727a0899810c" authors = ["Christian Merdon ", "Patrick Jaap "] -version = "1.2.0" +version = "1.2.1" [deps] DiffResults = "163ba53b-c6d8-5494-b064-1a9d43ac40c5" diff --git a/src/interpolations.jl b/src/interpolations.jl index 007c978..f1582b1 100644 --- a/src/interpolations.jl +++ b/src/interpolations.jl @@ -592,14 +592,14 @@ This function provides a flexible interface for extracting nodal or cellwise val - The result dimension is determined by the FE space, the operator, and the `abs` argument. """ function nodevalues( - source::FEVectorBlock{T, Tv, Ti, FEType, APT}, + source::FEVectorBlock{T, Tv, Ti, TVector, FEType, APT}, operator::Type{<:AbstractFunctionOperator} = Identity; continuous = "auto", nodes = [], cellwise = false, abs = false, kwargs... - ) where {T, Tv, Ti, APT, FEType} + ) where {T, Tv, Ti, APT, TVector, FEType} if continuous == "auto" if FEType <: AbstractH1FiniteElement && operator == Identity && !source.FES.broken && !(FEType <: H1CR) continuous = true @@ -655,7 +655,7 @@ This function provides efficient, zero-copy access to the nodal values of an `FE - Only available for unbroken H1-conforming elements and the Identity operator. """ -function nodevalues_view(source::FEVectorBlock{T, Tv, Ti, FEType, APT}, operator::Type{<:AbstractFunctionOperator} = Identity; nodes = [0]) where {T, Tv, Ti, APT, FEType} +function nodevalues_view(source::FEVectorBlock{T, Tv, Ti, TVector, FEType, APT}, operator::Type{<:AbstractFunctionOperator} = Identity; nodes = [0]) where {T, Tv, Ti, APT, TVector, FEType} if (FEType <: AbstractH1FiniteElement) && (operator == Identity) && (source.FES.broken == false) # give a direct view without computing anything @@ -721,14 +721,14 @@ This function performs nodal interpolation of the (possibly vector-valued) resul """ function continuify( - source::FEVectorBlock{T, Tv, Ti, FEType, APT}, + source::FEVectorBlock{T, Tv, Ti, TVector, FEType, APT}, operator::Type{<:AbstractFunctionOperator} = Identity; abs::Bool = false, broken = false, order = "auto", factor = 1, regions::Array{Int, 1} = [0] - ) where {T, Tv, Ti, FEType, APT} + ) where {T, Tv, Ti, TVector, FEType, APT} FE = source.FES xgrid = FE.dofgrid @@ -917,9 +917,9 @@ This forwards to the main nodevalues! method using a view of the block's entries """ function nodevalues!( target::AbstractArray{T, 2}, - block::FEVectorBlock{T, Tv, Ti, FEType, AT}, + block::FEVectorBlock{T}, operator::Type{<:AbstractFunctionOperator} = Identity; kwargs... - ) where {T, Tv, Ti, FEType, AT} + ) where {T} return nodevalues!(target, view(block), block.FES, operator; kwargs...) end