Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ExtendableFEMBase"
uuid = "12fb9182-3d4c-4424-8fd1-727a0899810c"
authors = ["Christian Merdon <[email protected]>", "Patrick Jaap <[email protected]>"]
version = "1.2.0"
version = "1.2.1"

[deps]
DiffResults = "163ba53b-c6d8-5494-b064-1a9d43ac40c5"
Expand Down
14 changes: 7 additions & 7 deletions src/interpolations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Loading