Skip to content

Commit

Permalink
Modify docs for diff type in MPValue
Browse files Browse the repository at this point in the history
  • Loading branch information
KeitaNakamura committed Aug 4, 2024
1 parent e206d8d commit 034f9bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Interpolations/mpvalue.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function create_property(::Type{Vec{dim, T}}, it::Interpolation, diff) where {di
diff === gradient && return (; w=fill(zero(T), dims), ∇w=fill(zero(Vec{dim, T}), dims))
diff === hessian && return (; w=fill(zero(T), dims), ∇w=fill(zero(Vec{dim, T}), dims), ∇∇w=fill(zero(SymmetricSecondOrderTensor{dim, T}), dims))
diff === all && return (; w=fill(zero(T), dims), ∇w=fill(zero(Vec{dim, T}), dims), ∇∇w=fill(zero(SymmetricSecondOrderTensor{dim, T}), dims), ∇∇∇w=fill(zero(Tensor{Tuple{@Symmetry{dim,dim,dim}}, T}), dims))
error("wrong differentiation type, choose `nothing`, `gradient`, `hessian` or `all`(third-order)")
error("wrong differentiation type, choose `nothing`, `gradient` and `hessian`")
end

"""
Expand Down

0 comments on commit 034f9bc

Please sign in to comment.