1212
1313# Shampine's Low-order Rosenbrocks
1414
15- mutable struct RosenbrockCache{uType, rateType, uNoUnitsType, JType, WType, TabType,
15+ mutable struct RosenbrockCache{uType, rateType, tabType, uNoUnitsType, JType, WType, TabType,
1616 TFType, UFType, F, JCType, GCType, RTolType, A, StepLimiter, StageLimiter} < :
1717 RosenbrockMutableCache
1818 u:: uType
@@ -21,6 +21,8 @@ mutable struct RosenbrockCache{uType, rateType, uNoUnitsType, JType, WType, TabT
2121 du:: rateType
2222 du1:: rateType
2323 du2:: rateType
24+ dtC:: Matrix{tabType}
25+ dtd:: Vector{tabType}
2426 ks:: Vector{rateType}
2527 fsalfirst:: rateType
2628 fsallast:: rateType
@@ -761,6 +763,9 @@ function alg_cache(
761763 du1 = zero (rate_prototype)
762764 du2 = zero (rate_prototype)
763765
766+ dtC = similar (tab. C)
767+ dtd = similar (tab. d)
768+
764769 # Initialize other variables
765770 fsalfirst = zero (rate_prototype)
766771 fsallast = zero (rate_prototype)
@@ -795,7 +800,7 @@ function alg_cache(
795800
796801 # Return the cache struct with vectors
797802 RosenbrockCache (
798- u, uprev, dense, du, du1, du2, ks, fsalfirst, fsallast,
803+ u, uprev, dense, du, du1, du2, dtC, dtd, ks, fsalfirst, fsallast,
799804 dT, J, W, tmp, atmp, weight, tab, tf, uf, linsolve_tmp,
800805 linsolve, jac_config, grad_config, reltol, alg,
801806 alg. step_limiter!, alg. stage_limiter!, size (tab. H, 1 ))
0 commit comments