@@ -32,40 +32,40 @@ function initialize!(integrator, cache::DefaultCache)
32
32
init_ith_default_cache (cache, algs, cache. current)
33
33
u = integrator. u
34
34
if cache. current == 1
35
- fsalfirst, fsallast = get_fsalfirstlast (cache. cache1,u)
35
+ fsalfirst, fsallast = get_fsalfirstlast (cache. cache1, u)
36
36
integrator. fsalfirst = fsalfirst
37
37
integrator. fsallast = fsallast
38
38
initialize! (integrator, cache. cache1)
39
39
elseif cache. current == 2
40
- fsalfirst, fsallast = get_fsalfirstlast (cache. cache2,u)
40
+ fsalfirst, fsallast = get_fsalfirstlast (cache. cache2, u)
41
41
integrator. fsalfirst = fsalfirst
42
42
integrator. fsallast = fsallast
43
43
initialize! (integrator, cache. cache2)
44
44
# the controller was initialized by default for algs[1]
45
45
reset_alg_dependent_opts! (integrator. opts. controller, algs[1 ], algs[2 ])
46
46
elseif cache. current == 3
47
- fsalfirst, fsallast = get_fsalfirstlast (cache. cache3,u)
47
+ fsalfirst, fsallast = get_fsalfirstlast (cache. cache3, u)
48
48
integrator. fsalfirst = fsalfirst
49
49
integrator. fsallast = fsallast
50
50
initialize! (integrator, cache. cache3)
51
51
# the controller was initialized by default for algs[1]
52
52
reset_alg_dependent_opts! (integrator. opts. controller, algs[1 ], algs[3 ])
53
53
elseif cache. current == 4
54
- fsalfirst, fsallast = get_fsalfirstlast (cache. cache4,u)
54
+ fsalfirst, fsallast = get_fsalfirstlast (cache. cache4, u)
55
55
integrator. fsalfirst = fsalfirst
56
56
integrator. fsallast = fsallast
57
57
initialize! (integrator, cache. cache4)
58
58
# the controller was initialized by default for algs[1]
59
59
reset_alg_dependent_opts! (integrator. opts. controller, algs[1 ], algs[4 ])
60
60
elseif cache. current == 5
61
- fsalfirst, fsallast = get_fsalfirstlast (cache. cache5,u)
61
+ fsalfirst, fsallast = get_fsalfirstlast (cache. cache5, u)
62
62
integrator. fsalfirst = fsalfirst
63
63
integrator. fsallast = fsallast
64
64
initialize! (integrator, cache. cache5)
65
65
# the controller was initialized by default for algs[1]
66
66
reset_alg_dependent_opts! (integrator. opts. controller, algs[1 ], algs[5 ])
67
67
elseif cache. current == 6
68
- fsalfirst, fsallast = get_fsalfirstlast (cache. cache6,u)
68
+ fsalfirst, fsallast = get_fsalfirstlast (cache. cache6, u)
69
69
integrator. fsalfirst = fsalfirst
70
70
integrator. fsallast = fsallast
71
71
initialize! (integrator, cache. cache6)
@@ -79,20 +79,20 @@ function initialize!(integrator, cache::CompositeCache)
79
79
cache. current = cache. choice_function (integrator)
80
80
u = integrator. u
81
81
if cache. current == 1
82
- fsalfirst, fsallast = get_fsalfirstlast (cache. caches[1 ],u)
82
+ fsalfirst, fsallast = get_fsalfirstlast (cache. caches[1 ], u)
83
83
integrator. fsalfirst = fsalfirst
84
84
integrator. fsallast = fsallast
85
85
initialize! (integrator, @inbounds (cache. caches[1 ]))
86
86
elseif cache. current == 2
87
- fsalfirst, fsallast = get_fsalfirstlast (cache. caches[2 ],u)
87
+ fsalfirst, fsallast = get_fsalfirstlast (cache. caches[2 ], u)
88
88
integrator. fsalfirst = fsalfirst
89
89
integrator. fsallast = fsallast
90
90
initialize! (integrator, @inbounds (cache. caches[2 ]))
91
91
# the controller was initialized by default for integrator.alg.algs[1]
92
92
reset_alg_dependent_opts! (integrator. opts. controller, integrator. alg. algs[1 ],
93
93
integrator. alg. algs[2 ])
94
94
else
95
- fsalfirst, fsallast = get_fsalfirstlast (cache. caches[cache. current],u)
95
+ fsalfirst, fsallast = get_fsalfirstlast (cache. caches[cache. current], u)
96
96
integrator. fsalfirst = fsalfirst
97
97
integrator. fsallast = fsallast
98
98
initialize! (integrator, @inbounds (cache. caches[cache. current]))
@@ -106,12 +106,12 @@ function initialize!(integrator, cache::CompositeCache{Tuple{T1, T2}, F}) where
106
106
cache. current = cache. choice_function (integrator)
107
107
u = integrator. u
108
108
if cache. current == 1
109
- fsalfirst, fsallast = get_fsalfirstlast (cache. caches[1 ],u)
109
+ fsalfirst, fsallast = get_fsalfirstlast (cache. caches[1 ], u)
110
110
integrator. fsalfirst = fsalfirst
111
111
integrator. fsallast = fsallast
112
112
initialize! (integrator, @inbounds (cache. caches[1 ]))
113
113
elseif cache. current == 2
114
- fsalfirst, fsallast = get_fsalfirstlast (cache. caches[2 ],u)
114
+ fsalfirst, fsallast = get_fsalfirstlast (cache. caches[2 ], u)
115
115
integrator. fsalfirst = fsalfirst
116
116
integrator. fsallast = fsallast
117
117
initialize! (integrator, @inbounds (cache. caches[2 ]))
@@ -172,12 +172,12 @@ function choose_algorithm!(integrator,
172
172
@inbounds if new_current != old_current
173
173
cache. current = new_current
174
174
if new_current == 1
175
- fsalfirst, fsallast = get_fsalfirstlast (cache. caches[1 ],u)
175
+ fsalfirst, fsallast = get_fsalfirstlast (cache. caches[1 ], u)
176
176
integrator. fsalfirst = fsalfirst
177
177
integrator. fsallast = fsallast
178
178
initialize! (integrator, @inbounds (cache. caches[1 ]))
179
179
elseif new_current == 2
180
- fsalfirst, fsallast = get_fsalfirstlast (cache. caches[2 ],u)
180
+ fsalfirst, fsallast = get_fsalfirstlast (cache. caches[2 ], u)
181
181
integrator. fsalfirst = fsalfirst
182
182
integrator. fsallast = fsallast
183
183
initialize! (integrator, @inbounds (cache. caches[2 ]))
@@ -205,37 +205,37 @@ function choose_algorithm!(integrator, cache::DefaultCache)
205
205
cache. current = new_current
206
206
init_ith_default_cache (cache, algs, new_current)
207
207
if new_current == 1
208
- fsalfirst, fsallast = get_fsalfirstlast (cache. cache1,u)
208
+ fsalfirst, fsallast = get_fsalfirstlast (cache. cache1, u)
209
209
integrator. fsalfirst = fsalfirst
210
210
integrator. fsallast = fsallast
211
211
initialize! (integrator, @inbounds (cache. cache1))
212
212
new_cache = cache. cache1
213
213
elseif new_current == 2
214
- fsalfirst, fsallast = get_fsalfirstlast (cache. cache2,u)
214
+ fsalfirst, fsallast = get_fsalfirstlast (cache. cache2, u)
215
215
integrator. fsalfirst = fsalfirst
216
216
integrator. fsallast = fsallast
217
217
initialize! (integrator, @inbounds (cache. cache2))
218
218
new_cache = cache. cache2
219
219
elseif new_current == 3
220
- fsalfirst, fsallast = get_fsalfirstlast (cache. cache3,u)
220
+ fsalfirst, fsallast = get_fsalfirstlast (cache. cache3, u)
221
221
integrator. fsalfirst = fsalfirst
222
222
integrator. fsallast = fsallast
223
223
initialize! (integrator, @inbounds (cache. cache3))
224
224
new_cache = cache. cache3
225
225
elseif new_current == 4
226
- fsalfirst, fsallast = get_fsalfirstlast (cache. cache4,u)
226
+ fsalfirst, fsallast = get_fsalfirstlast (cache. cache4, u)
227
227
integrator. fsalfirst = fsalfirst
228
228
integrator. fsallast = fsallast
229
229
initialize! (integrator, @inbounds (cache. cache4))
230
230
new_cache = cache. cache4
231
231
elseif new_current == 5
232
- fsalfirst, fsallast = get_fsalfirstlast (cache. cache5,u)
232
+ fsalfirst, fsallast = get_fsalfirstlast (cache. cache5, u)
233
233
integrator. fsalfirst = fsalfirst
234
234
integrator. fsallast = fsallast
235
235
initialize! (integrator, @inbounds (cache. cache5))
236
236
new_cache = cache. cache5
237
237
elseif new_current == 6
238
- fsalfirst, fsallast = get_fsalfirstlast (cache. cache6,u)
238
+ fsalfirst, fsallast = get_fsalfirstlast (cache. cache6, u)
239
239
integrator. fsalfirst = fsalfirst
240
240
integrator. fsallast = fsallast
241
241
initialize! (integrator, @inbounds (cache. cache6))
0 commit comments