@@ -15,7 +15,7 @@ function alg_cache(alg::ABDF2, u, rate_prototype, ::Type{uEltypeNoUnits},
15
15
:: Type{uBottomEltypeNoUnits} , :: Type{tTypeNoUnits} ,
16
16
uprev, uprev2, f, t, dt, reltol, p, calck,
17
17
:: Val{false} ) where {uEltypeNoUnits, uBottomEltypeNoUnits, tTypeNoUnits}
18
- γ, c = 2 // 3 , 1
18
+ γ, c = Int64 ( 2 ) // 3 , 1
19
19
nlsolver = build_nlsolver (alg, u, uprev, p, t, dt, f, rate_prototype, uEltypeNoUnits,
20
20
uBottomEltypeNoUnits, tTypeNoUnits, γ, c, Val (false ))
21
21
eulercache = ImplicitEulerConstantCache (nlsolver)
@@ -45,7 +45,7 @@ function alg_cache(alg::ABDF2, u, rate_prototype, ::Type{uEltypeNoUnits},
45
45
:: Type{uBottomEltypeNoUnits} ,
46
46
:: Type{tTypeNoUnits} , uprev, uprev2, f, t, dt, reltol, p, calck,
47
47
:: Val{true} ) where {uEltypeNoUnits, uBottomEltypeNoUnits, tTypeNoUnits}
48
- γ, c = 2 // 3 , 1
48
+ γ, c = Int64 ( 2 ) // 3 , 1
49
49
nlsolver = build_nlsolver (alg, u, uprev, p, t, dt, f, rate_prototype, uEltypeNoUnits,
50
50
uBottomEltypeNoUnits, tTypeNoUnits, γ, c, Val (true ))
51
51
fsalfirst = zero (rate_prototype)
@@ -104,7 +104,7 @@ function alg_cache(alg::SBDF, u, rate_prototype, ::Type{uEltypeNoUnits},
104
104
:: Type{uBottomEltypeNoUnits} , :: Type{tTypeNoUnits} , uprev, uprev2, f, t,
105
105
dt, reltol, p, calck,
106
106
:: Val{false} ) where {uEltypeNoUnits, uBottomEltypeNoUnits, tTypeNoUnits}
107
- γ, c = 1 // 1 , 1
107
+ γ, c = Int64 ( 1 ) // 1 , 1
108
108
nlsolver = build_nlsolver (alg, u, uprev, p, t, dt, f, rate_prototype, uEltypeNoUnits,
109
109
uBottomEltypeNoUnits, tTypeNoUnits, γ, c, Val (false ))
110
110
@@ -127,7 +127,7 @@ function alg_cache(alg::SBDF, u, rate_prototype, ::Type{uEltypeNoUnits},
127
127
:: Type{uBottomEltypeNoUnits} , :: Type{tTypeNoUnits} , uprev, uprev2, f, t,
128
128
dt, reltol, p, calck,
129
129
:: Val{true} ) where {uEltypeNoUnits, uBottomEltypeNoUnits, tTypeNoUnits}
130
- γ, c = 1 // 1 , 1
130
+ γ, c = Int64 ( 1 ) // 1 , 1
131
131
nlsolver = build_nlsolver (alg, u, uprev, p, t, dt, f, rate_prototype, uEltypeNoUnits,
132
132
uBottomEltypeNoUnits, tTypeNoUnits, γ, c, Val (true ))
133
133
fsalfirst = zero (rate_prototype)
@@ -360,7 +360,7 @@ function alg_cache(alg::QNDF{MO}, u, rate_prototype, ::Type{uEltypeNoUnits},
360
360
:: Val{false} ) where {uEltypeNoUnits, uBottomEltypeNoUnits, tTypeNoUnits
361
361
} where {MO}
362
362
max_order = MO
363
- γ, c = 1 // 1 , 1
363
+ γ, c = Int64 ( 1 ) // 1 , 1
364
364
nlsolver = build_nlsolver (alg, u, uprev, p, t, dt, f, rate_prototype, uEltypeNoUnits,
365
365
uBottomEltypeNoUnits, tTypeNoUnits, γ, c, Val (false ))
366
366
dtprev = one (dt)
@@ -380,7 +380,7 @@ function alg_cache(alg::QNDF{MO}, u, rate_prototype, ::Type{uEltypeNoUnits},
380
380
end
381
381
U = SArray (U)
382
382
383
- γₖ = SVector (ntuple (k -> sum (tTypeNoUnits (1 // j) for j in 1 : k), Val (max_order)))
383
+ γₖ = SVector (ntuple (k -> sum (tTypeNoUnits (Int64 ( 1 ) // j) for j in 1 : k), Val (max_order)))
384
384
385
385
QNDFConstantCache (nlsolver, U, D, prevD, 1 , 1 , Val (max_order), dtprev, 0 , 0 , EEst1,
386
386
EEst2, γₖ)
@@ -426,7 +426,7 @@ function alg_cache(alg::QNDF{MO}, u, rate_prototype, ::Type{uEltypeNoUnits},
426
426
:: Val{true} ) where {uEltypeNoUnits, uBottomEltypeNoUnits, tTypeNoUnits
427
427
} where {MO}
428
428
max_order = MO
429
- γ, c = 1 // 1 , 1
429
+ γ, c = Int64 ( 1 ) // 1 , 1
430
430
nlsolver = build_nlsolver (alg, u, uprev, p, t, dt, f, rate_prototype, uEltypeNoUnits,
431
431
uBottomEltypeNoUnits, tTypeNoUnits, γ, c, Val (true ))
432
432
fsalfirst = zero (rate_prototype)
@@ -459,7 +459,7 @@ function alg_cache(alg::QNDF{MO}, u, rate_prototype, ::Type{uEltypeNoUnits},
459
459
U = SArray (U)
460
460
461
461
RU = Matrix (U)
462
- γₖ = SVector (ntuple (k -> sum (tTypeNoUnits (1 // j) for j in 1 : k), Val (max_order)))
462
+ γₖ = SVector (ntuple (k -> sum (tTypeNoUnits (Int64 ( 1 ) // j) for j in 1 : k), Val (max_order)))
463
463
464
464
QNDFCache (fsalfirst, dd, utilde, utildem1, utildep1, ϕ, u₀, nlsolver, U, RU, D, Dtmp,
465
465
tmp2, prevD, 1 , 1 , Val (max_order), dtprev, 0 , 0 , EEst1, EEst2, γₖ, atmp,
@@ -541,15 +541,15 @@ function alg_cache(alg::FBDF{MO}, u, rate_prototype, ::Type{uEltypeNoUnits},
541
541
dt, reltol, p, calck,
542
542
:: Val{false} ) where {uEltypeNoUnits, uBottomEltypeNoUnits, tTypeNoUnits
543
543
} where {MO}
544
- γ, c = 1 // 1 , 1
544
+ γ, c = Int64 ( 1 ) // 1 , 1
545
545
max_order = MO
546
546
nlsolver = build_nlsolver (alg, u, uprev, p, t, dt, f, rate_prototype, uEltypeNoUnits,
547
547
uBottomEltypeNoUnits, tTypeNoUnits, γ, c, Val (false ))
548
548
bdf_coeffs = SA[1 - 1 0 0 0 0 ;
549
- 3 // 2 - 2 1 // 2 0 0 0 ;
550
- 11 // 6 - 3 3 // 2 - 1 // 3 0 0 ;
551
- 25 // 12 - 4 3 - 4 // 3 1 // 4 0 ;
552
- 137 // 60 - 5 5 - 10 // 3 5 // 4 - 1 // 5 ]
549
+ Int64 ( 3 ) // 2 - 2 Int64 ( 1 ) // 2 0 0 0 ;
550
+ Int64 ( 11 ) // 6 - 3 Int64 ( 3 ) // 2 - Int64 ( 1 ) // 3 0 0 ;
551
+ Int64 ( 25 ) // 12 - 4 3 - Int64 ( 4 ) // 3 Int64 ( 1 ) // 4 0 ;
552
+ Int64 ( 137 ) // 60 - 5 5 - Int64 ( 10 ) // 3 Int64 ( 5 ) // 4 - Int64 ( 1 ) // 5 ]
553
553
ts = zero (Vector {typeof(t)} (undef, max_order + 2 )) # ts is the successful past points, it will be updated after successful step
554
554
ts_tmp = similar (ts)
555
555
@@ -616,16 +616,16 @@ function alg_cache(alg::FBDF{MO}, u, rate_prototype, ::Type{uEltypeNoUnits},
616
616
dt, reltol, p, calck,
617
617
:: Val{true} ) where {MO, uEltypeNoUnits, uBottomEltypeNoUnits,
618
618
tTypeNoUnits}
619
- γ, c = 1 // 1 , 1
619
+ γ, c = Int64 ( 1 ) // 1 , 1
620
620
fsalfirst = zero (rate_prototype)
621
621
max_order = MO
622
622
nlsolver = build_nlsolver (alg, u, uprev, p, t, dt, f, rate_prototype, uEltypeNoUnits,
623
623
uBottomEltypeNoUnits, tTypeNoUnits, γ, c, Val (true ))
624
624
bdf_coeffs = SA[1 - 1 0 0 0 0 ;
625
- 3 // 2 - 2 1 // 2 0 0 0 ;
626
- 11 // 6 - 3 3 // 2 - 1 // 3 0 0 ;
627
- 25 // 12 - 4 3 - 4 // 3 1 // 4 0 ;
628
- 137 // 60 - 5 5 - 10 // 3 5 // 4 - 1 // 5 ]
625
+ Int64 ( 3 ) // 2 - 2 Int64 ( 1 ) // 2 0 0 0 ;
626
+ Int64 ( 11 ) // 6 - 3 Int64 ( 3 ) // 2 - Int64 ( 1 ) // 3 0 0 ;
627
+ Int64 ( 25 ) // 12 - 4 3 - Int64 ( 4 ) // 3 Int64 ( 1 ) // 4 0 ;
628
+ Int64 ( 137 ) // 60 - 5 5 - Int64 ( 10 ) // 3 Int64 ( 5 ) // 4 - Int64 ( 1 ) // 5 ]
629
629
ts = Vector {typeof(t)} (undef, max_order + 2 ) # ts is the successful past points, it will be updated after successful step
630
630
u_history = Matrix {eltype(u)} (undef, length (u), max_order + 2 )
631
631
order = 1
0 commit comments