Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unroll error estimate & FSAL handling #1852

Merged
merged 3 commits into from
Jan 29, 2023
Merged

Conversation

YingboMa
Copy link
Member

No description provided.

@YingboMa
Copy link
Member Author

julia> function fff!(du,u,p,t)
        mul!(du, p, u)
       end
fff! (generic function with 1 method)

julia> prob = ODEProblem(fff!,rand(8),(0, 1.0), rand(8, 8));

julia> sol = @btime solve($prob, Vern9());
  11.799 μs (112 allocations: 20.09 KiB)

julia> tabalg = ExplicitRK(tableau = constructVernerEfficient9()); sol2 = @btime solve($prob,$tabalg);
  10.537 μs (83 allocations: 12.00 KiB)

julia> sol - sol2
VectorOfArray{Float64,2}:
6-element Vector{Vector{Float64}}:
 [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
 [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
 [0.0, -4.440892098500626e-16, 0.0, -4.440892098500626e-16, -2.220446049250313e-16, 0.0, -2.220446049250313e-16, 0.0]
 [0.0, -8.881784197001252e-16, 0.0, 0.0, -2.6645352591003757e-15, -1.7763568394002505e-15, -1.7763568394002505e-15, -8.881784197001252e-16]
 [1.7763568394002505e-15, 0.0, -7.105427357601002e-15, 0.0, -7.105427357601002e-15, 0.0, -1.7763568394002505e-15, -3.552713678800501e-15]
 [0.0, -3.552713678800501e-15, -1.0658141036401503e-14, -3.552713678800501e-15, -7.105427357601002e-15, -3.552713678800501e-15, -3.552713678800501e-15, -7.105427357601002e-15]

@YingboMa
Copy link
Member Author

julia> sol = @btime solve($prob, Tsit5());
  9.564 μs (128 allocations: 16.41 KiB)

julia> tabalg = ExplicitRK(tableau = constructTsitouras5()); sol2 = @btime solve($prob,$tabalg);
  8.809 μs (88 allocations: 10.34 KiB)

julia> sol - sol2
VectorOfArray{Float64,2}:
10-element Vector{Vector{Float64}}:
 [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
 [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
 [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
 [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
 [-2.220446049250313e-16, 4.440892098500626e-16, 0.0, -4.440892098500626e-16, 0.0, 4.440892098500626e-16, -2.220446049250313e-16, 0.0]
 [0.0, 1.3322676295501878e-15, 0.0, -8.881784197001252e-16, 8.881784197001252e-16, 8.881784197001252e-16, 1.3322676295501878e-15, -4.440892098500626e-16]
 [1.7763568394002505e-15, 3.552713678800501e-15, 0.0, 8.881784197001252e-16, 2.6645352591003757e-15, 8.881784197001252e-16, 1.7763568394002505e-15, 0.0]
 [-3.552713678800501e-15, 3.552713678800501e-15, 1.7763568394002505e-15, 5.329070518200751e-15, 1.7763568394002505e-15, -1.7763568394002505e-15, 7.105427357601002e-15, 3.552713678800501e-15]
 [3.552713678800501e-15, 3.552713678800501e-15, 1.4210854715202004e-14, 1.4210854715202004e-14, 1.0658141036401503e-14, -1.0658141036401503e-14, 2.1316282072803006e-14, 0.0]
 [1.0658141036401503e-14, 1.4210854715202004e-14, 1.4210854715202004e-14, 2.1316282072803006e-14, 1.4210854715202004e-14, -1.0658141036401503e-14, 2.4868995751603507e-14, 0.0]

@YingboMa YingboMa changed the title Unroll error estimate & FASL handling Unroll error estimate & FSAL handling Jan 28, 2023
@YingboMa
Copy link
Member Author

@ChrisRackauckas the DDE failure seems unrelated.

@ChrisRackauckas
Copy link
Member

Yes, the dde tests are, can you bump the tolerances downstream?

But also, the regression tests are failing.

@YingboMa
Copy link
Member Author

I think I fixed it in 99adf27. Do you still see it?

@YingboMa
Copy link
Member Author

Ah, there are regression tests in ordinarydiffeq-dot-jl as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants