Skip to content

Commit 9389303

Browse files
author
Oscar Smith
authored
Merge pull request #2589 from Shreyas-Ekanathan/master
Add FIRK interpolation and addsteps
2 parents 10715d7 + ebbfcf9 commit 9389303

File tree

8 files changed

+2153
-348
lines changed

8 files changed

+2153
-348
lines changed

lib/OrdinaryDiffEqFIRK/src/OrdinaryDiffEqFIRK.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ using LinearAlgebra: I, UniformScaling, mul!, lu
2626
import LinearSolve
2727
import FastBroadcast: @..
2828
import OrdinaryDiffEqCore
29+
import OrdinaryDiffEqCore: _ode_interpolant, _ode_interpolant!, has_stiff_interpolation
2930
import FastPower
30-
3131
using OrdinaryDiffEqDifferentiation: UJacobianWrapper, build_J_W, build_jac_config,
3232
UDerivativeWrapper, calc_J!, dolinsolve, calc_J,
3333
islinearfunction
@@ -45,6 +45,8 @@ include("controllers.jl")
4545
include("firk_caches.jl")
4646
include("firk_tableaus.jl")
4747
include("firk_perform_step.jl")
48+
include("firk_interpolants.jl")
49+
include("firk_addsteps.jl")
4850
include("integrator_interface.jl")
4951

5052
export RadauIIA3, RadauIIA5, RadauIIA9, AdaptiveRadau

lib/OrdinaryDiffEqFIRK/src/alg_utils.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ alg_adaptive_order(alg::RadauIIA9) = 5
1616

1717
get_current_alg_order(alg::AdaptiveRadau, cache) = cache.num_stages * 2 - 1
1818
get_current_adaptive_order(alg::AdaptiveRadau, cache) = cache.num_stages
19+
20+
function has_stiff_interpolation(::Union{RadauIIA3, RadauIIA5, RadauIIA9, AdaptiveRadau})
21+
true
22+
end

0 commit comments

Comments
 (0)