Commit 824f7a8 1 parent 897c1cd commit 824f7a8 Copy full SHA for 824f7a8
File tree 3 files changed +25
-18
lines changed
3 files changed +25
-18
lines changed Original file line number Diff line number Diff line change @@ -189,13 +189,15 @@ function step!(integrator::SimpleIntegrator2N)
189
189
integrator. iter += 1
190
190
integrator. t += integrator. dt
191
191
192
- # handle callbacks
193
- if callbacks isa CallbackSet
194
- foreach (callbacks. discrete_callbacks) do cb
195
- if cb. condition (integrator. u, integrator. t, integrator)
196
- cb. affect! (integrator)
192
+ @trixi_timeit timer () " Step-Callbacks" begin
193
+ # handle callbacks
194
+ if callbacks isa CallbackSet
195
+ foreach (callbacks. discrete_callbacks) do cb
196
+ if cb. condition (integrator. u, integrator. t, integrator)
197
+ cb. affect! (integrator)
198
+ end
199
+ return nothing
197
200
end
198
- return nothing
199
201
end
200
202
end
201
203
Original file line number Diff line number Diff line change @@ -265,13 +265,15 @@ function step!(integrator::SimpleIntegrator3Sstar)
265
265
integrator. iter += 1
266
266
integrator. t += integrator. dt
267
267
268
- # handle callbacks
269
- if callbacks isa CallbackSet
270
- foreach (callbacks. discrete_callbacks) do cb
271
- if cb. condition (integrator. u, integrator. t, integrator)
272
- cb. affect! (integrator)
268
+ @trixi_timeit timer () " Step-Callbacks" begin
269
+ # handle callbacks
270
+ if callbacks isa CallbackSet
271
+ foreach (callbacks. discrete_callbacks) do cb
272
+ if cb. condition (integrator. u, integrator. t, integrator)
273
+ cb. affect! (integrator)
274
+ end
275
+ return nothing
273
276
end
274
- return nothing
275
277
end
276
278
end
277
279
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ struct SimpleSSPRK33{StageCallbacks} <: SimpleAlgorithmSSP
39
39
c = SVector (0.0 , 1.0 , 1 / 2 )
40
40
41
41
# Butcher tableau
42
- # c | a
42
+ # c | A
43
43
# 0 |
44
44
# 1 | 1
45
45
# 1/2 | 1/4 1/4
@@ -208,11 +208,14 @@ function solve!(integrator::SimpleIntegratorSSP)
208
208
integrator. iter += 1
209
209
integrator. t += integrator. dt
210
210
211
- # handle callbacks
212
- if callbacks isa CallbackSet
213
- foreach (callbacks. discrete_callbacks) do cb
214
- if cb. condition (integrator. u, integrator. t, integrator)
215
- cb. affect! (integrator)
211
+ @trixi_timeit timer () " Step-Callbacks" begin
212
+ # handle callbacks
213
+ if callbacks isa CallbackSet
214
+ foreach (callbacks. discrete_callbacks) do cb
215
+ if cb. condition (integrator. u, integrator. t, integrator)
216
+ cb. affect! (integrator)
217
+ end
218
+ return nothing
216
219
end
217
220
end
218
221
end
You can’t perform that action at this time.
0 commit comments