@@ -490,7 +490,6 @@ mutable struct AdaptiveRadauConstantCache{F, Tab, Tol, Dt, U, JType} <:
490490 step:: Int
491491 θ:: BigFloat
492492 θprev:: BigFloat
493- orders:: Vector{Int}
494493end
495494
496495function alg_cache (alg:: AdaptiveRadau , u, rate_prototype, :: Type{uEltypeNoUnits} ,
@@ -508,29 +507,15 @@ function alg_cache(alg::AdaptiveRadau, u, rate_prototype, ::Type{uEltypeNoUnits}
508507 push! (tabs, adaptiveRadauTableau (uToltype, constvalue (tTypeNoUnits), i))
509508 i += 2
510509 end
511- #=
512- if (num_stages == 3)
513- tab = BigRadauIIA5Tableau(uToltype, constvalue(tTypeNoUnits))
514- elseif (num_stages == 5)
515- tab = BigRadauIIA9Tableau(uToltype, constvalue(tTypeNoUnits))
516- elseif (num_stages == 7)
517- tab = BigRadauIIA13Tableau(uToltype, constvalue(tTypeNoUnits))
518- elseif iseven(num_stages) || num_stages <3
519- error("num_stages must be odd and 3 or greater")
520- else
521- tab = adaptiveRadauTableau(uToltype, constvalue(tTypeNoUnits), min_num_stages)
522- end
523- =#
524510 cont = Vector {typeof(u)} (undef, max)
525511 for i in 1 : max
526512 cont[i] = zero (u)
527513 end
528514
529515 κ = alg. κ != = nothing ? convert (uToltype, alg. κ) : convert (uToltype, 1 // 100 )
530516 J = false .* _vec (rate_prototype) .* _vec (rate_prototype)'
531- orders = [0 ,0 ,0 ,0 ]
532517 AdaptiveRadauConstantCache (uf, tabs, κ, one (uToltype), 10000 , cont, dt, dt,
533- Convergence, J, num_stages, 1 , big " 1.0" , big " 1.0" , orders )
518+ Convergence, J, num_stages, 1 , big " 1.0" , big " 1.0" )
534519end
535520
536521mutable struct AdaptiveRadauCache{uType, cuType, tType, uNoUnitsType, rateType, JType, W1Type, W2Type,
@@ -576,7 +561,6 @@ mutable struct AdaptiveRadauCache{uType, cuType, tType, uNoUnitsType, rateType,
576561 step:: Int
577562 θ:: BigFloat
578563 θprev:: BigFloat
579- orders:: Vector{Int}
580564end
581565
582566function alg_cache (alg:: AdaptiveRadau , u, rate_prototype, :: Type{uEltypeNoUnits} ,
@@ -597,19 +581,6 @@ function alg_cache(alg::AdaptiveRadau, u, rate_prototype, ::Type{uEltypeNoUnits}
597581 push! (tabs, adaptiveRadauTableau (uToltype, constvalue (tTypeNoUnits), i))
598582 i += 2
599583 end
600- #=
601- if (num_stages == 3)
602- tab = BigRadauIIA5Tableau(uToltype, constvalue(tTypeNoUnits))
603- elseif (num_stages == 5)
604- tab = BigRadauIIA9Tableau(uToltype, constvalue(tTypeNoUnits))
605- elseif (num_stages == 7)
606- tab = BigRadauIIA13Tableau(uToltype, constvalue(tTypeNoUnits))
607- elseif iseven(num_stages) || num_stages < 3
608- error("num_stages must be odd and 3 or greater")
609- else
610- tab = adaptiveRadauTableau(uToltype, constvalue(tTypeNoUnits), num_stages)
611- end
612- =#
613584
614585 κ = alg. κ != = nothing ? convert (uToltype, alg. κ) : convert (uToltype, 1 // 100 )
615586
@@ -682,6 +653,6 @@ function alg_cache(alg::AdaptiveRadau, u, rate_prototype, ::Type{uEltypeNoUnits}
682653 uf, tabs, κ, one (uToltype), 10000 , tmp,
683654 atmp, jac_config,
684655 linsolve1, linsolve2, rtol, atol, dt, dt,
685- Convergence, alg. step_limiter!, num_stages, 1 , big " 1.0" , big " 1.0" , [ 0 , 0 , 0 , 0 ] )
656+ Convergence, alg. step_limiter!, num_stages, 1 , big " 1.0" , big " 1.0" )
686657end
687658
0 commit comments