Skip to content

Commit

Permalink
Make dispatch for reinit without cell more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
KnutAM committed Feb 2, 2025
1 parent 43db37c commit 214e2f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FEValues/CellValues.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ getnquadpoints(cv::CellValues) = getnquadpoints(cv.qr)
end
@inline _update_detJdV!(::Nothing, q_point, w, mapping) = nothing

@inline function reinit!(cv::CellValues, x::AbstractVector)
@inline function reinit!(cv::AbstractCellValues, x::AbstractVector)

Check warning on line 104 in src/FEValues/CellValues.jl

View check run for this annotation

Codecov / codecov/patch

src/FEValues/CellValues.jl#L104

Added line #L104 was not covered by tests
return reinit!(cv, nothing, x)
end

Expand Down
2 changes: 1 addition & 1 deletion src/FEValues/FacetValues.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function set_current_facet!(fv::FacetValues, facet_nr::Int)
return
end

@inline function reinit!(fv::FacetValues, x::AbstractVector, facet_nr::Int)
@inline function reinit!(fv::AbstractFacetValues, x::AbstractVector, facet_nr::Int)

Check warning on line 123 in src/FEValues/FacetValues.jl

View check run for this annotation

Codecov / codecov/patch

src/FEValues/FacetValues.jl#L123

Added line #L123 was not covered by tests
return reinit!(fv, nothing, x, facet_nr)
end

Expand Down

0 comments on commit 214e2f4

Please sign in to comment.