-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Many of the implicit SDE solvers fail when adaptive=true
with no method matching +(::Array{Float64,1}, ::Float64)
#123
Comments
Take what I say with a large grain of salt, but I think the issue is here: In the |
I'm pretty sure that the error is caused by https://github.com/JuliaDiffEq/StochasticDiffEq.jl/blob/master/src/perform_step/sdirk.jl#L88. All operations (apart from the outer Actually, the same problem occurs with other algorithms as well (e.g. a similar error that you mentioned in your issue in DifferentialEquations.jl is caused by the same problem), hence I was about to propose changing the computations of residuals in a similar way as it is done in OrdinaryDiffEq (as I mentioned before in your last PR). |
Yes, this is due to changes in Julia v1.0. In v0.6, There is a confounding factor that with the v1.0 upgrade, I found SciML/OrdinaryDiffEq.jl#571 and JuliaLang/julia#28126 and so I ended up not taking the time to broadcast everything correctly in the updated versions because doing so would lead to some major performance regressions on code that is not designed for arrays in the first place. This kind of put us in a bind because I want it to work anyways since out of place with arrays does have its uses, including simplicity, but I don't want the SVector usage to be hit hard when arrays should be using in-place. However, we are tracking this JuliaArrays/StaticArrays.jl#560 and hoping to get it fixed directly. |
fails with:
The failure happens with other implicit solvers as well (presumably, all the solvers from
sdirk.jl
).If I use
adaptive=false
it works.The text was updated successfully, but these errors were encountered: