-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Fix resize_J_W! for Vector{Matrix{Float64}} #1462
base: master
Are you sure you want to change the base?
Conversation
@@ -163,7 +163,11 @@ function resize_J_W!(cache, integrator, i) | |||
if cache.J !== nothing | |||
cache.J = similar(cache.J, i, i) | |||
end | |||
cache.W = similar(cache.W, i, i) | |||
if typeof(cache.W) <: Vector{Matrix{Float64}} | |||
fill!(cache.W,similar(eltype(cache.W),i,i)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this would alias all of them to the same W matrix. It needs to be an array of W's.
Needs tests. |
Ping me to merge when this passes. |
I will be adding tests shortly, but with the given MWE (which is in ode_cache_tests.jl), why resizing of |
I don't get the question. |
Okay yeah, so in tests of
Both of these algorithms fail to solve contrary in algo like KenCarp4. Why is that happening? |
Probably because |
Where should be the tests added for this? |
To the cache tests. You should be able to flip the currently failing tests. |
Attempts to Fix #1436.
MWE:
Previously:
After:
The problem we currently have with Extrapolation Methods and QNDF is the same; resizing of
integrator.u
is not happening.See in QNDF:
So yeah, we need to address it.