Skip to content

Commit

Permalink
fix type declaration in default_interpolation (#15)
Browse files Browse the repository at this point in the history
* fix type declaration in default_interpolation

* fix test for default_interpolation
  • Loading branch information
DRollin committed May 24, 2024
1 parent c94599e commit 924633b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/interpolations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function Ferrite.facedof_interior_indices(ip::InterfaceCellInterpolation{<:Abstr
return (here, there)
end

function Ferrite.default_interpolation(::Type{InterfaceCell{shape, C}}) where {shape<:AbstractRefShape, C}
function Ferrite.default_interpolation(::Type{InterfaceCell{shape, C, N}}) where {shape<:AbstractRefShape, C, N}
return InterfaceCellInterpolation(default_interpolation(C))
end

Expand Down
2 changes: 1 addition & 1 deletion test/test_interpolations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@test get_side_and_baseindex(ip, 5) == (:there, 1)
@test_throws ArgumentError get_side_and_baseindex(ip, 19)

testcelltype = InterfaceCell{RefQuadrilateral, Line}
testcelltype = InterfaceCell{RefQuadrilateral, Line, 4}
expectedtype = InterfaceCellInterpolation{RefQuadrilateral, 1, Lagrange{RefLine,1,Nothing}}
@test Ferrite.default_interpolation(testcelltype) isa expectedtype
@test Ferrite.default_geometric_interpolation(Ferrite.default_interpolation(testcelltype)) isa VectorizedInterpolation{2, RefQuadrilateral, <:Any, expectedtype}
Expand Down

0 comments on commit 924633b

Please sign in to comment.