Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Knut Andreas Meyer <knutam@gmail.com>
  • Loading branch information
termi-official and KnutAM authored Jan 7, 2025
1 parent 1be5b0a commit d4e36f7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/deprecations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,7 @@ function value(ip::Interpolation, ξ::Vec)
printstyled(io, "`[reference_shape_value(ip, ξ, i) for i in 1:getnbasefunctions(ip)]`", color = :green)
print(io, " or ")
printstyled(io, "`reference_shape_values!(N, ip, ξ)`", color = :green)
print(io, " (with preallocated ")
printstyled(io, "`N`", color = :green)
print(io, ") instead.")
print(io, " (with preallocated `N`) instead.")

throw(DeprecationError(takestring(io)))
end
Expand All @@ -360,9 +358,7 @@ function derivative(ip::Interpolation, ξ::Vec)
printstyled(io, "`[reference_shape_gradient(ip, ξ, i) for i in 1:getnbasefunctions(ip)]`", color = :green)
print(io, " or ")
printstyled(io, "`reference_shape_gradients!(dNdξ, ip, ξ)`", color = :green)
print(io, " (with preallocated ")
printstyled(io, "`dNdξ`", color = :green)
print(io, ") instead.")
print(io, " (with preallocated `dNdξ`) instead.")

throw(DeprecationError(takestring(io)))
end
Expand Down

0 comments on commit d4e36f7

Please sign in to comment.