Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lijas committed Nov 4, 2024
1 parent 4a16855 commit 0972061
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/src/devdocs/FEValues.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ Ferrite.BCValues
## Internal utilities
```@docs
Ferrite.embedding_det
Ferrite.shape_value_type
Ferrite.shape_value_type(::AbstractValues)
Ferrite.shape_value_type(::FunctionValues)
Ferrite.shape_gradient_type
Ferrite.ValuesUpdateFlags
```
Expand Down
1 change: 1 addition & 0 deletions docs/src/devdocs/interpolations.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Ferrite.reference_shape_values!
Ferrite.reference_shape_gradients!
Ferrite.reference_shape_gradients_and_values!
Ferrite.reference_shape_hessians_gradients_and_values!
Ferrite.shape_value_type
```

### Required methods to implement for all subtypes of `Interpolation` to define a new finite element
Expand Down
5 changes: 5 additions & 0 deletions src/interpolations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ n_components(::VectorInterpolation{vdim}) where {vdim} = vdim
# Number of components that are allowed to prescribe in e.g. Dirichlet BC
n_dbc_components(ip::Interpolation) = n_components(ip)

"""
shape_value_type(ip::Iterpolation, ::Type{T}) where T<:Number
Return the type of `shape_value(ip::Interpolation, ξ::Vec, ib::Int)`
"""
shape_value_type(::ScalarInterpolation, ::Type{T}) where {T <: Number} = T
shape_value_type(::VectorInterpolation{vdim}, ::Type{T}) where {vdim, T <: Number} = Vec{vdim, T}

Check warning on line 66 in src/interpolations.jl

View check run for this annotation

Codecov / codecov/patch

src/interpolations.jl#L65-L66

Added lines #L65 - L66 were not covered by tests
#shape_value_type(::MatrixInterpolation, T::Type) = Tensor #958
Expand Down

0 comments on commit 0972061

Please sign in to comment.