|
1 | 1 | @muladd function perform_step!(integrator, cache::SROCK1ConstantCache) |
2 | | - @unpack t, dt, uprev, u, W, p, f = integrator |
| 2 | + (; t, dt, uprev, u, W, p, f) = integrator |
3 | 3 |
|
4 | 4 | alg = unwrap_alg(integrator, true) |
5 | 5 | alg.eigen_est === nothing ? maxeig!(integrator, cache) : alg.eigen_est(integrator) |
|
95 | 95 | end |
96 | 96 |
|
97 | 97 | @muladd function perform_step!(integrator, cache::SROCK1Cache) |
98 | | - @unpack uᵢ₋₁, uᵢ₋₂, k, gₘ₋₁, gₘ₋₂ = cache |
99 | | - @unpack t, dt, uprev, u, W, p, f = integrator |
| 98 | + (; uᵢ₋₁, uᵢ₋₂, k, gₘ₋₁, gₘ₋₂) = cache |
| 99 | + (; t, dt, uprev, u, W, p, f) = integrator |
100 | 100 | ccache = cache.constantcache |
101 | 101 | alg = unwrap_alg(integrator, true) |
102 | 102 | alg.eigen_est === nothing ? maxeig!(integrator, cache) : alg.eigen_est(integrator) |
|
190 | 190 | end |
191 | 191 |
|
192 | 192 | @muladd function perform_step!(integrator, cache::SROCK2ConstantCache) |
193 | | - @unpack t, dt, uprev, u, W, p, f = integrator |
194 | | - @unpack recf, recf2, mα, mσ, mτ = cache |
| 193 | + (; t, dt, uprev, u, W, p, f) = integrator |
| 194 | + (; recf, recf2, mα, mσ, mτ) = cache |
195 | 195 |
|
196 | 196 | gen_prob = !((is_diagonal_noise(integrator.sol.prob)) || (W.dW isa Number) || |
197 | 197 | (length(W.dW) == 1)) |
@@ -323,11 +323,11 @@ end |
323 | 323 | end |
324 | 324 |
|
325 | 325 | @muladd function perform_step!(integrator, cache::SROCK2Cache) |
326 | | - @unpack uᵢ, uₓ, uᵢ₋₁, uᵢ₋₂, k, Gₛ, Gₛ₁, vec_χ, WikRange = cache |
| 326 | + (; uᵢ, uₓ, uᵢ₋₁, uᵢ₋₂, k, Gₛ, Gₛ₁, vec_χ, WikRange) = cache |
327 | 327 |
|
328 | | - @unpack t, dt, uprev, u, W, p, f = integrator |
| 328 | + (; t, dt, uprev, u, W, p, f) = integrator |
329 | 329 |
|
330 | | - @unpack recf, recf2, mα, mσ, mτ = cache.constantcache |
| 330 | + (; recf, recf2, mα, mσ, mτ) = cache.constantcache |
331 | 331 | ccache = cache.constantcache |
332 | 332 | gen_prob = !((is_diagonal_noise(integrator.sol.prob)) || (W.dW isa Number) || |
333 | 333 | (length(W.dW) == 1)) |
|
476 | 476 | end |
477 | 477 |
|
478 | 478 | @muladd function perform_step!(integrator, cache::SROCKEMConstantCache) |
479 | | - @unpack t, dt, uprev, u, W, p, f = integrator |
| 479 | + (; t, dt, uprev, u, W, p, f) = integrator |
480 | 480 |
|
481 | 481 | alg = unwrap_alg(integrator, true) |
482 | 482 | alg.eigen_est === nothing ? maxeig!(integrator, cache) : alg.eigen_est(integrator) |
|
567 | 567 | end |
568 | 568 |
|
569 | 569 | @muladd function perform_step!(integrator, cache::SROCKEMCache) |
570 | | - @unpack uᵢ₋₁, uᵢ₋₂, tmp, k, Gₛ, Gₛ₁, WikRange = cache |
571 | | - @unpack t, dt, uprev, u, W, p, f = integrator |
| 570 | + (; uᵢ₋₁, uᵢ₋₂, tmp, k, Gₛ, Gₛ₁, WikRange) = cache |
| 571 | + (; t, dt, uprev, u, W, p, f) = integrator |
572 | 572 | ccache = cache.constantcache |
573 | 573 | alg = unwrap_alg(integrator, true) |
574 | 574 | alg.eigen_est === nothing ? maxeig!(integrator, cache) : alg.eigen_est(integrator) |
|
662 | 662 | end |
663 | 663 |
|
664 | 664 | @muladd function perform_step!(integrator, cache::SKSROCKConstantCache) |
665 | | - @unpack t, dt, uprev, u, W, p, f = integrator |
| 665 | + (; t, dt, uprev, u, W, p, f) = integrator |
666 | 666 |
|
667 | 667 | alg = unwrap_alg(integrator, true) |
668 | 668 | alg.eigen_est === nothing ? maxeig!(integrator, cache) : alg.eigen_est(integrator) |
|
747 | 747 | end |
748 | 748 |
|
749 | 749 | @muladd function perform_step!(integrator, cache::SKSROCKCache) |
750 | | - @unpack uᵢ₋₁, uᵢ₋₂, k, Gₛ, WikRange = cache |
751 | | - @unpack t, dt, uprev, u, W, p, f = integrator |
| 750 | + (; uᵢ₋₁, uᵢ₋₂, k, Gₛ, WikRange) = cache |
| 751 | + (; t, dt, uprev, u, W, p, f) = integrator |
752 | 752 |
|
753 | 753 | ccache = cache.constantcache |
754 | 754 | alg = unwrap_alg(integrator, true) |
|
838 | 838 | end |
839 | 839 |
|
840 | 840 | @muladd function perform_step!(integrator, cache::TangXiaoSROCK2ConstantCache) |
841 | | - @unpack t, dt, uprev, u, W, p, f = integrator |
842 | | - @unpack recf, recf2, mα, mσ, mτ, mn̂, c1, c2 = cache |
| 841 | + (; t, dt, uprev, u, W, p, f) = integrator |
| 842 | + (; recf, recf2, mα, mσ, mτ, mn̂, c1, c2) = cache |
843 | 843 |
|
844 | 844 | n̂ = mn̂[integrator.alg.version_num] |
845 | 845 |
|
@@ -1000,9 +1000,9 @@ end |
1000 | 1000 | end |
1001 | 1001 |
|
1002 | 1002 | @muladd function perform_step!(integrator, cache::TangXiaoSROCK2Cache) |
1003 | | - @unpack uᵢ, uₓ, uᵢ₋₁, uᵢ₋₂, Û₁, Û₂, k, Gₛ, Gₛ₁ = cache |
1004 | | - @unpack t, dt, uprev, u, W, p, f = integrator |
1005 | | - @unpack recf, recf2, mα, mσ, mτ, mn̂, c1, c2 = cache.constantcache |
| 1003 | + (; uᵢ, uₓ, uᵢ₋₁, uᵢ₋₂, Û₁, Û₂, k, Gₛ, Gₛ₁) = cache |
| 1004 | + (; t, dt, uprev, u, W, p, f) = integrator |
| 1005 | + (; recf, recf2, mα, mσ, mτ, mn̂, c1, c2) = cache.constantcache |
1006 | 1006 |
|
1007 | 1007 | n̂ = mn̂[integrator.alg.version_num] |
1008 | 1008 | ccache = cache.constantcache |
@@ -1148,8 +1148,8 @@ end |
1148 | 1148 | end |
1149 | 1149 |
|
1150 | 1150 | @muladd function perform_step!(integrator, cache::KomBurSROCK2ConstantCache) |
1151 | | - @unpack t, dt, uprev, u, W, p, f = integrator |
1152 | | - @unpack recf, mσ, mτ, mδ = cache |
| 1151 | + (; t, dt, uprev, u, W, p, f) = integrator |
| 1152 | + (; recf, mσ, mτ, mδ) = cache |
1153 | 1153 |
|
1154 | 1154 | gen_prob = !((is_diagonal_noise(integrator.sol.prob)) || (W.dW isa Number) || |
1155 | 1155 | (length(W.dW) == 1)) |
@@ -1345,10 +1345,10 @@ end |
1345 | 1345 | end |
1346 | 1346 |
|
1347 | 1347 | @muladd function perform_step!(integrator, cache::KomBurSROCK2Cache) |
1348 | | - @unpack utmp, uᵢ₋₁, uᵢ₋₂, k, yₛ₋₁, yₛ₋₂, yₛ₋₃, SXₛ₋₁, SXₛ₋₂, |
1349 | | - SXₛ₋₃, Gₛ, Xₛ₋₁, Xₛ₋₂, Xₛ₋₃, vec_χ = cache |
1350 | | - @unpack t, dt, uprev, u, W, p, f = integrator |
1351 | | - @unpack recf, mσ, mτ, mδ = cache.constantcache |
| 1348 | + (; utmp, uᵢ₋₁, uᵢ₋₂, k, yₛ₋₁, yₛ₋₂, yₛ₋₃, SXₛ₋₁, SXₛ₋₂, |
| 1349 | + SXₛ₋₃, Gₛ, Xₛ₋₁, Xₛ₋₂, Xₛ₋₃, vec_χ) = cache |
| 1350 | + (; t, dt, uprev, u, W, p, f) = integrator |
| 1351 | + (; recf, mσ, mτ, mδ) = cache.constantcache |
1352 | 1352 |
|
1353 | 1353 | ccache = cache.constantcache |
1354 | 1354 | gen_prob = !((is_diagonal_noise(integrator.sol.prob)) || (W.dW isa Number) || |
@@ -1572,8 +1572,8 @@ end |
1572 | 1572 | end |
1573 | 1573 |
|
1574 | 1574 | @muladd function perform_step!(integrator, cache::SROCKC2ConstantCache) |
1575 | | - @unpack t, dt, uprev, u, W, p, f = integrator |
1576 | | - @unpack recf, mσ, mτ = cache |
| 1575 | + (; t, dt, uprev, u, W, p, f) = integrator |
| 1576 | + (; recf, mσ, mτ) = cache |
1577 | 1577 |
|
1578 | 1578 | alg = unwrap_alg(integrator, true) |
1579 | 1579 | alg.eigen_est === nothing ? maxeig!(integrator, cache) : alg.eigen_est(integrator) |
@@ -1655,10 +1655,10 @@ end |
1655 | 1655 | end |
1656 | 1656 |
|
1657 | 1657 | @muladd function perform_step!(integrator, cache::SROCKC2Cache) |
1658 | | - @unpack uᵢ, tmp, uᵢ₋₁, uᵢ₋₂, k, Gₛ, Gₛ₁, WikRange = cache |
1659 | | - @unpack t, dt, uprev, u, W, p, f = integrator |
| 1658 | + (; uᵢ, tmp, uᵢ₋₁, uᵢ₋₂, k, Gₛ, Gₛ₁, WikRange) = cache |
| 1659 | + (; t, dt, uprev, u, W, p, f) = integrator |
1660 | 1660 |
|
1661 | | - @unpack recf, mσ, mτ = cache.constantcache |
| 1661 | + (; recf, mσ, mτ) = cache.constantcache |
1662 | 1662 | ccache = cache.constantcache |
1663 | 1663 |
|
1664 | 1664 | alg = unwrap_alg(integrator, true) |
|
0 commit comments