Skip to content

Commit

Permalink
fix bdf and RadauIIA5
Browse files Browse the repository at this point in the history
  • Loading branch information
kanav99 committed Jul 14, 2019
1 parent d4ec769 commit 9527c04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/integrators/integrator_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ end

# the ordering of the cache arrays is important!!!
@inline DiffEqBase.get_tmp_cache(integrator,alg::OrdinaryDiffEqAlgorithm,cache) = (cache.tmp,)
@inline DiffEqBase.get_tmp_cache(integrator,alg::RadauIIA5,cache) = (cache.tmp,cache.atmp)
@inline DiffEqBase.get_tmp_cache(integrator,alg::OrdinaryDiffEqNewtonAdaptiveAlgorithm,cache) = (cache.nlsolver.tmp,cache.atmp)
@inline DiffEqBase.get_tmp_cache(integrator,alg::OrdinaryDiffEqRosenbrockAdaptiveAlgorithm,cache) = (cache.tmp,cache.linsolve_tmp)
@inline DiffEqBase.get_tmp_cache(integrator,alg::CompositeAlgorithm, cache) = get_tmp_cache(integrator, integrator.alg.algs[1], cache.caches[1])
Expand Down
3 changes: 1 addition & 2 deletions src/perform_step/bdf_perform_step.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ end
cache.dtₙ₋₁ = dtₙ
perform_step!(integrator, cache.eulercache, repeat_step)
cache.fsalfirstprev .= integrator.fsalfirst
# why?
# nlsolver.tmp = tmp
nlsolver.tmp = tmp
return
end

Expand Down

0 comments on commit 9527c04

Please sign in to comment.