Skip to content

Commit e8a21f8

Browse files
authored
fixes related to new TVector type for entries introduced in 1.2 (#46)
* fixes related to new TVector type for entries introduced in 1.2 * version bump and changelog (together with PR #45)
1 parent 6ca9c51 commit e8a21f8

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGES
22

3+
## v1.2.1 July 09, 2025
4+
- some bugfixes related to new template parameter from 1.2.0
5+
- @show of FEVectorBlock does not crash anymore
6+
37
## v1.2.0 July 07, 2025
48
- major documentation and docstring overhaul
59
- improved show functions and constructors for FEMatrix, FEVector

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ExtendableFEMBase"
22
uuid = "12fb9182-3d4c-4424-8fd1-727a0899810c"
33
authors = ["Christian Merdon <[email protected]>", "Patrick Jaap <[email protected]>"]
4-
version = "1.2.0"
4+
version = "1.2.1"
55

66
[deps]
77
DiffResults = "163ba53b-c6d8-5494-b064-1a9d43ac40c5"

src/interpolations.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -592,14 +592,14 @@ This function provides a flexible interface for extracting nodal or cellwise val
592592
- The result dimension is determined by the FE space, the operator, and the `abs` argument.
593593
"""
594594
function nodevalues(
595-
source::FEVectorBlock{T, Tv, Ti, FEType, APT},
595+
source::FEVectorBlock{T, Tv, Ti, TVector, FEType, APT},
596596
operator::Type{<:AbstractFunctionOperator} = Identity;
597597
continuous = "auto",
598598
nodes = [],
599599
cellwise = false,
600600
abs = false,
601601
kwargs...
602-
) where {T, Tv, Ti, APT, FEType}
602+
) where {T, Tv, Ti, APT, TVector, FEType}
603603
if continuous == "auto"
604604
if FEType <: AbstractH1FiniteElement && operator == Identity && !source.FES.broken && !(FEType <: H1CR)
605605
continuous = true
@@ -655,7 +655,7 @@ This function provides efficient, zero-copy access to the nodal values of an `FE
655655
- Only available for unbroken H1-conforming elements and the Identity operator.
656656
657657
"""
658-
function nodevalues_view(source::FEVectorBlock{T, Tv, Ti, FEType, APT}, operator::Type{<:AbstractFunctionOperator} = Identity; nodes = [0]) where {T, Tv, Ti, APT, FEType}
658+
function nodevalues_view(source::FEVectorBlock{T, Tv, Ti, TVector, FEType, APT}, operator::Type{<:AbstractFunctionOperator} = Identity; nodes = [0]) where {T, Tv, Ti, APT, TVector, FEType}
659659

660660
if (FEType <: AbstractH1FiniteElement) && (operator == Identity) && (source.FES.broken == false)
661661
# give a direct view without computing anything
@@ -721,14 +721,14 @@ This function performs nodal interpolation of the (possibly vector-valued) resul
721721
722722
"""
723723
function continuify(
724-
source::FEVectorBlock{T, Tv, Ti, FEType, APT},
724+
source::FEVectorBlock{T, Tv, Ti, TVector, FEType, APT},
725725
operator::Type{<:AbstractFunctionOperator} = Identity;
726726
abs::Bool = false,
727727
broken = false,
728728
order = "auto",
729729
factor = 1,
730730
regions::Array{Int, 1} = [0]
731-
) where {T, Tv, Ti, FEType, APT}
731+
) where {T, Tv, Ti, TVector, FEType, APT}
732732

733733
FE = source.FES
734734
xgrid = FE.dofgrid
@@ -917,9 +917,9 @@ This forwards to the main nodevalues! method using a view of the block's entries
917917
"""
918918
function nodevalues!(
919919
target::AbstractArray{T, 2},
920-
block::FEVectorBlock{T, Tv, Ti, FEType, AT},
920+
block::FEVectorBlock{T},
921921
operator::Type{<:AbstractFunctionOperator} = Identity;
922922
kwargs...
923-
) where {T, Tv, Ti, FEType, AT}
923+
) where {T}
924924
return nodevalues!(target, view(block), block.FES, operator; kwargs...)
925925
end

0 commit comments

Comments
 (0)