Skip to content

Commit df8e272

Browse files
Merge pull request #874 from SciML/myb/tab_info
Add `stability_size`, `fsal`, and dense output fields
2 parents 7675c95 + d1e88d7 commit df8e272

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/tableaus.jl

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,26 @@ $(TYPEDEF)
33
44
Holds a tableau which defines an explicit Runge-Kutta method.
55
"""
6-
mutable struct ExplicitRKTableau{MType <: AbstractMatrix, VType <: AbstractVector, fsal} <:
6+
mutable struct ExplicitRKTableau{MType <: AbstractMatrix, VType <: AbstractVector, S} <:
77
ODERKTableau
88
A::MType
99
c::VType
1010
α::VType
1111
αEEst::VType
12+
d::VType # dense output coefficients
1213
stages::Int
1314
order::Int
1415
adaptiveorder::Int #The lower order of the pair. Only used for adaptivity.
16+
fsal::Bool
17+
stability_size::S
1518
end
1619
function ExplicitRKTableau(A::MType, c::VType, α::VType, order;
17-
adaptiveorder = 0, αEEst = VType(),
18-
fsal = false) where {MType, VType}
19-
ExplicitRKTableau{MType, VType, fsal}(A, c, α, αEEst, length(α), order, adaptiveorder)
20+
adaptiveorder = 0, αEEst = similar(α, 0),
21+
fsal = false, stability_size = 0.0,
22+
d = similar(α, 0)) where {MType, VType}
23+
S = typeof(stability_size)
24+
ExplicitRKTableau{MType, VType, S}(A, c, α, αEEst, d, length(α), order, adaptiveorder,
25+
fsal, stability_size)
2026
end
2127

2228
"""

0 commit comments

Comments
 (0)