Skip to content

Commit

Permalink
Update utils.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
YichengDWu committed May 28, 2023
1 parent 0317a48 commit 888e842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pde/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ end

function finitediff(phi, x, θ, dim::Int, order::Int)
ε = ChainRulesCore.@ignore_derivatives get_ε(finitediff, Val(size(x, 1)), Val(dim), eltype(θ), Val(order))
h = get_h(finitediff, eltype(x), order)
h = get_h(finitediff, eltype(x), Val(order))
ε = convert(parameterless_type(x), ε)

if order == 4
Expand Down

0 comments on commit 888e842

Please sign in to comment.