We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de7695e commit 8807ee9Copy full SHA for 8807ee9
libs/Theseus/src/imex/tableau.jl
@@ -393,7 +393,7 @@ struct ARS222 <: RKIMEX{3} end
393
function RKTableau(alg::ARS222, RealT)
394
# ARS(2,2,2) IMEX Runge-Kutta - Second order
395
nstage = 3
396
- gamma = 1 - sqrt(2) / 2
+ gamma = 1 - sqrt(convert(RealT, 2)) / 2
397
delta = 1 - 1 / (2 * gamma)
398
a = zeros(RealT, nstage, nstage)
399
a[2, 1] = gamma
@@ -438,7 +438,7 @@ The implicit part is A-stable but not L-stable.
438
struct ARS233 <: RKIMEX{3} end
439
function RKTableau(alg::ARS233, RealT)
440
441
- gamma = (3 + sqrt(3)) / 6
+ gamma = (3 + sqrt(convert(RealT, 3))) / 6
442
443
444
a[3, 1] = gamma - 1
0 commit comments