Skip to content

Commit

Permalink
format and tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Oct 14, 2022
1 parent d47d6f2 commit 57c549f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "OrdinaryDiffEq"
uuid = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
authors = ["Chris Rackauckas <[email protected]>", "Yingbo Ma <[email protected]>"]
version = "6.28.1"
version = "6.29.0"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
3 changes: 2 additions & 1 deletion test/integrators/ode_event_tests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using OrdinaryDiffEq, RecursiveArrayTools, Test, StaticArrays, DiffEqCallbacks, SparseArrays,
using OrdinaryDiffEq, RecursiveArrayTools, Test, StaticArrays, DiffEqCallbacks,
SparseArrays,
LinearAlgebra

f = function (u, p, t)
Expand Down
10 changes: 5 additions & 5 deletions test/interface/ad_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,10 @@ fn(x, solver) = objfun(x, prob, data, solver, reltol, abstol)

# test AD with LinearExponential()
function f(x)
K = DiffEqArrayOperator(x)
u0 = eltype(x).([1.0,0.0])
prob = ODEProblem(K, u0, (0.0,10.0))
sol = solve(prob, LinearExponential(), tstops = [0.0,10.0])[2,:]
K = DiffEqArrayOperator(x)
u0 = eltype(x).([1.0, 0.0])
prob = ODEProblem(K, u0, (0.0, 10.0))
sol = solve(prob, LinearExponential(), tstops = [0.0, 10.0])[2, :]
end
K_ = [-1.0 0.0; 1.0 -1.0]
@test isapprox(ForwardDiff.jacobian(f,K_)[2], 0.00226999, atol=1e-6)
@test isapprox(ForwardDiff.jacobian(f, K_)[2], 0.00226999, atol = 1e-6)

0 comments on commit 57c549f

Please sign in to comment.