Skip to content

Commit

Permalink
Up min SciMLBase compat
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Feb 25, 2024
1 parent 6432716 commit e937e67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ RecursiveArrayTools = "3.8"
RecursiveFactorization = "0.2.14"
Reexport = "1"
SafeTestsets = "0.1"
SciMLBase = "2.23.0"
SciMLBase = "2.26.3"
SciMLOperators = "0.3.7"
Setfield = "1"
SparseArrays = "1.10"
Expand Down
6 changes: 3 additions & 3 deletions test/adjoint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ end
dA, db1, db2 = Zygote.gradient(f3, A, b1, b1)

dA2 = FiniteDiff.finite_difference_gradient(
x -> f4(x, eltype(x).(b1), eltype(x).(b1)), copy(A))
x -> f3(x, eltype(x).(b1), eltype(x).(b1)), copy(A))
db12 = FiniteDiff.finite_difference_gradient(
x -> f4(eltype(x).(A), x, eltype(x).(b1)), copy(b1))
x -> f3(eltype(x).(A), x, eltype(x).(b1)), copy(b1))
db22 = FiniteDiff.finite_difference_gradient(
x -> f4(eltype(x).(A), eltype(x).(b1), x), copy(b1))
x -> f3(eltype(x).(A), eltype(x).(b1), x), copy(b1))

@test dAdA2 atol=5e-5
@test db1 db12
Expand Down

0 comments on commit e937e67

Please sign in to comment.