@@ -30,7 +30,7 @@ Currently implemented methods are the Carpenter-Kennedy-Lewis 4-stage, 3rd-order
30
30
and the Carpenter-Kennedy-Lewis 5-stage, 4th-order method [`CKL54`](@ref) which are optimized for the
31
31
compressible Navier-Stokes equations.
32
32
"""
33
- abstract type vanderHouwenAlgorithm end
33
+ abstract type vanderHouwenAlgorithm <: AbstractTimeIntegrationAlgorithm end
34
34
35
35
"""
36
36
vanderHouwenRelaxationAlgorithm
@@ -53,7 +53,8 @@ Currently implemented methods are the Carpenter-Kennedy-Lewis 4-stage, 3rd-order
53
53
and the Carpenter-Kennedy-Lewis 5-stage, 4th-order method [`RelaxationCKL54`](@ref) which are optimized for the
54
54
compressible Navier-Stokes equations.
55
55
"""
56
- abstract type vanderHouwenRelaxationAlgorithm end
56
+ abstract type vanderHouwenRelaxationAlgorithm < :
57
+ AbstractRelaxationTimeIntegrationAlgorithm end
57
58
58
59
"""
59
60
CKL43()
@@ -233,16 +234,6 @@ function init(ode::ODEProblem, alg::vanderHouwenRelaxationAlgorithm;
233
234
return integrator
234
235
end
235
236
236
- # Fakes `solve`: https://diffeq.sciml.ai/v6.8/basics/overview/#Solving-the-Problems-1
237
- function solve (ode:: ODEProblem ,
238
- alg:: vanderHouwenRelaxationAlgorithm ;
239
- dt, callback = nothing , kwargs... )
240
- integrator = init (ode, alg, dt = dt, callback = callback; kwargs... )
241
-
242
- # Start actual solve
243
- solve! (integrator)
244
- end
245
-
246
237
function step! (integrator:: vanderHouwenRelaxationIntegrator )
247
238
@unpack prob = integrator. sol
248
239
@unpack alg = integrator
@@ -301,7 +292,7 @@ function step!(integrator::vanderHouwenRelaxationIntegrator)
301
292
302
293
bsminus1_minus_as = alg. b[stage - 1 ] - alg. a[stage]
303
294
@threaded for i in eachindex (integrator. u)
304
- # Try to enable optimizations due to `muladd` by avoidin `+=`
295
+ # Try to enable optimizations due to `muladd` by avoiding `+=`
305
296
# https://github.com/trixi-framework/Trixi.jl/pull/2480#discussion_r2224531702
306
297
integrator. direction[i] = integrator. direction[i] +
307
298
bs_dt * integrator. du[i]
0 commit comments