-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
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
changed the title
Unroll error estimate & FASL handling
Unroll error estimate & FSAL handling
Jan 28, 2023
@ChrisRackauckas the DDE failure seems unrelated. |
Yes, the dde tests are, can you bump the tolerances downstream? But also, the regression tests are failing. |
I think I fixed it in 99adf27. Do you still see it? |
Ah, there are regression tests in ordinarydiffeq-dot-jl as well. |
ChrisRackauckas
approved these changes
Jan 29, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.