@@ -33,41 +33,41 @@ function initialize!(integrator, cache::DefaultCache)
33
33
u = integrator. u
34
34
if cache. current == 1
35
35
fsalfirst, fsallast = get_fsalfirstlast (cache. cache1, u)
36
- integrator. fsalfirst = fsalfirst
37
- integrator. fsallast = fsallast
36
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
37
+ ! isnothing (fsallast) && ( integrator. fsallast = fsallast)
38
38
initialize! (integrator, cache. cache1)
39
39
elseif cache. current == 2
40
40
fsalfirst, fsallast = get_fsalfirstlast (cache. cache2, u)
41
- integrator. fsalfirst = fsalfirst
42
- integrator. fsallast = fsallast
41
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
42
+ ! isnothing (fsallast) && ( 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
47
fsalfirst, fsallast = get_fsalfirstlast (cache. cache3, u)
48
- integrator. fsalfirst = fsalfirst
49
- integrator. fsallast = fsallast
48
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
49
+ ! isnothing (fsallast) && ( 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
54
fsalfirst, fsallast = get_fsalfirstlast (cache. cache4, u)
55
- integrator. fsalfirst = fsalfirst
56
- integrator. fsallast = fsallast
55
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
56
+ ! isnothing (fsallast) && ( 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
61
fsalfirst, fsallast = get_fsalfirstlast (cache. cache5, u)
62
- integrator. fsalfirst = fsalfirst
63
- integrator. fsallast = fsallast
62
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
63
+ ! isnothing (fsallast) && ( 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
68
fsalfirst, fsallast = get_fsalfirstlast (cache. cache6, u)
69
- integrator. fsalfirst = fsalfirst
70
- integrator. fsallast = fsallast
69
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
70
+ ! isnothing (fsallast) && ( integrator. fsallast = fsallast)
71
71
initialize! (integrator, cache. cache6)
72
72
# the controller was initialized by default for algs[1]
73
73
reset_alg_dependent_opts! (integrator. opts. controller, algs[1 ], algs[6 ])
@@ -80,21 +80,21 @@ function initialize!(integrator, cache::CompositeCache)
80
80
u = integrator. u
81
81
if cache. current == 1
82
82
fsalfirst, fsallast = get_fsalfirstlast (cache. caches[1 ], u)
83
- integrator. fsalfirst = fsalfirst
84
- integrator. fsallast = fsallast
83
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
84
+ ! isnothing (fsallast) && ( integrator. fsallast = fsallast)
85
85
initialize! (integrator, @inbounds (cache. caches[1 ]))
86
86
elseif cache. current == 2
87
87
fsalfirst, fsallast = get_fsalfirstlast (cache. caches[2 ], u)
88
- integrator. fsalfirst = fsalfirst
89
- integrator. fsallast = fsallast
88
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
89
+ ! isnothing (fsallast) && ( 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
95
fsalfirst, fsallast = get_fsalfirstlast (cache. caches[cache. current], u)
96
- integrator. fsalfirst = fsalfirst
97
- integrator. fsallast = fsallast
96
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
97
+ ! isnothing (fsallast) && ( integrator. fsallast = fsallast)
98
98
initialize! (integrator, @inbounds (cache. caches[cache. current]))
99
99
reset_alg_dependent_opts! (integrator. opts. controller, integrator. alg. algs[1 ],
100
100
integrator. alg. algs[cache. current])
@@ -107,13 +107,13 @@ function initialize!(integrator, cache::CompositeCache{Tuple{T1, T2}, F}) where
107
107
u = integrator. u
108
108
if cache. current == 1
109
109
fsalfirst, fsallast = get_fsalfirstlast (cache. caches[1 ], u)
110
- integrator. fsalfirst = fsalfirst
111
- integrator. fsallast = fsallast
110
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
111
+ ! isnothing (fsallast) && ( integrator. fsallast = fsallast)
112
112
initialize! (integrator, @inbounds (cache. caches[1 ]))
113
113
elseif cache. current == 2
114
114
fsalfirst, fsallast = get_fsalfirstlast (cache. caches[2 ], u)
115
- integrator. fsalfirst = fsalfirst
116
- integrator. fsallast = fsallast
115
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
116
+ ! isnothing (fsallast) && ( integrator. fsallast = fsallast)
117
117
initialize! (integrator, @inbounds (cache. caches[2 ]))
118
118
reset_alg_dependent_opts! (integrator. opts. controller, integrator. alg. algs[1 ],
119
119
integrator. alg. algs[2 ])
@@ -173,13 +173,13 @@ function choose_algorithm!(integrator,
173
173
cache. current = new_current
174
174
if new_current == 1
175
175
fsalfirst, fsallast = get_fsalfirstlast (cache. caches[1 ], u)
176
- integrator. fsalfirst = fsalfirst
177
- integrator. fsallast = fsallast
176
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
177
+ ! isnothing (fsallast) && ( integrator. fsallast = fsallast)
178
178
initialize! (integrator, @inbounds (cache. caches[1 ]))
179
179
elseif new_current == 2
180
180
fsalfirst, fsallast = get_fsalfirstlast (cache. caches[2 ], u)
181
- integrator. fsalfirst = fsalfirst
182
- integrator. fsallast = fsallast
181
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
182
+ ! isnothing (fsallast) && ( integrator. fsallast = fsallast)
183
183
initialize! (integrator, @inbounds (cache. caches[2 ]))
184
184
end
185
185
if old_current == 1 && new_current == 2
@@ -206,38 +206,38 @@ function choose_algorithm!(integrator, cache::DefaultCache)
206
206
init_ith_default_cache (cache, algs, new_current)
207
207
if new_current == 1
208
208
fsalfirst, fsallast = get_fsalfirstlast (cache. cache1, u)
209
- integrator. fsalfirst = fsalfirst
210
- integrator. fsallast = fsallast
209
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
210
+ ! isnothing (fsallast) && ( integrator. fsallast = fsallast)
211
211
initialize! (integrator, @inbounds (cache. cache1))
212
212
new_cache = cache. cache1
213
213
elseif new_current == 2
214
214
fsalfirst, fsallast = get_fsalfirstlast (cache. cache2, u)
215
- integrator. fsalfirst = fsalfirst
216
- integrator. fsallast = fsallast
215
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
216
+ ! isnothing (fsallast) && ( integrator. fsallast = fsallast)
217
217
initialize! (integrator, @inbounds (cache. cache2))
218
218
new_cache = cache. cache2
219
219
elseif new_current == 3
220
220
fsalfirst, fsallast = get_fsalfirstlast (cache. cache3, u)
221
- integrator. fsalfirst = fsalfirst
222
- integrator. fsallast = fsallast
221
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
222
+ ! isnothing (fsallast) && ( integrator. fsallast = fsallast)
223
223
initialize! (integrator, @inbounds (cache. cache3))
224
224
new_cache = cache. cache3
225
225
elseif new_current == 4
226
226
fsalfirst, fsallast = get_fsalfirstlast (cache. cache4, u)
227
- integrator. fsalfirst = fsalfirst
228
- integrator. fsallast = fsallast
227
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
228
+ ! isnothing (fsallast) && ( integrator. fsallast = fsallast)
229
229
initialize! (integrator, @inbounds (cache. cache4))
230
230
new_cache = cache. cache4
231
231
elseif new_current == 5
232
232
fsalfirst, fsallast = get_fsalfirstlast (cache. cache5, u)
233
- integrator. fsalfirst = fsalfirst
234
- integrator. fsallast = fsallast
233
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
234
+ ! isnothing (fsallast) && ( integrator. fsallast = fsallast)
235
235
initialize! (integrator, @inbounds (cache. cache5))
236
236
new_cache = cache. cache5
237
237
elseif new_current == 6
238
238
fsalfirst, fsallast = get_fsalfirstlast (cache. cache6, u)
239
- integrator. fsalfirst = fsalfirst
240
- integrator. fsallast = fsallast
239
+ ! isnothing (fsalfirst) && ( integrator. fsalfirst = fsalfirst)
240
+ ! isnothing (fsallast) && ( integrator. fsallast = fsallast)
241
241
initialize! (integrator, @inbounds (cache. cache6))
242
242
new_cache = cache. cache6
243
243
end
0 commit comments