Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Hendrik Ranocha <[email protected]>
  • Loading branch information
DanielDoehring and ranocha authored Jan 9, 2025
1 parent 68cec10 commit 926a097
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 9 deletions.
5 changes: 3 additions & 2 deletions examples/structured_2d_dgsem/elixir_euler_vortex_perk4.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

using OrdinaryDiffEq # Required for `CallbackSet`
# We use time integration methods implemented in Trixi.jl, but we need the `CallbackSet`
using OrdinaryDiffEq: CallbackSet
using Trixi

# Ratio of specific heats
Expand All @@ -21,7 +22,7 @@ The classical isentropic vortex test case as presented in Section 5.1 of
function initial_condition_isentropic_vortex(x, t, equations::CompressibleEulerEquations2D)
# Evaluate error after full domain traversion
if t == t_end()
t = 0
t = zero(t)
end

# Initial center of the vortex
Expand Down
3 changes: 2 additions & 1 deletion examples/tree_1d_dgsem/elixir_hypdiff_nonperiodic_perk4.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

using OrdinaryDiffEq # Required for `CallbackSet`
# We use time integration methods implemented in Trixi.jl, but we need the `CallbackSet`
using OrdinaryDiffEq: CallbackSet
using Trixi

# Convex and ECOS are imported because they are used for finding the optimal time step and optimal
Expand Down
2 changes: 1 addition & 1 deletion src/time_integration/methods_2N.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ mutable struct SimpleIntegrator2N{RealT <: Real, uType, Params, Sol, F, Alg,
iter::Int # current number of time steps (iteration)
p::Params # will be the semidiscretization from Trixi.jl
sol::Sol # faked
f::F # `rhs` of the semidiscretization
f::F # `rhs!` of the semidiscretization
alg::Alg
opts::SimpleIntegrator2NOptions
finalstep::Bool # added for convenience
Expand Down
2 changes: 1 addition & 1 deletion src/time_integration/methods_3Sstar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ mutable struct SimpleIntegrator3Sstar{RealT <: Real, uType, Params, Sol, F, Alg,
iter::Int # current number of time step (iteration)
p::Params # will be the semidiscretization from Trixi.jl
sol::Sol # faked
f::F # `rhs` of the semidiscretization
f::F # `rhs!` of the semidiscretization
alg::Alg
opts::SimpleIntegrator3SstarOptions
finalstep::Bool # added for convenience
Expand Down
2 changes: 1 addition & 1 deletion src/time_integration/methods_SSP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ mutable struct SimpleIntegratorSSP{RealT <: Real, uType, Params, Sol, F, Alg,
iter::Int # current number of time steps (iteration)
p::Params # will be the semidiscretization from Trixi
sol::Sol # faked
f::F # `rhs` of the semidiscretization
f::F # `rhs!` of the semidiscretization
alg::Alg # SimpleSSPRK33
opts::SimpleIntegratorSSPOptions
finalstep::Bool # added for convenience
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ mutable struct PairedExplicitRK2Integrator{RealT <: Real, uType, Params, Sol, F,
iter::Int # current number of time steps (iteration)
p::Params # will be the semidiscretization from Trixi
sol::Sol # faked
f::F # `rhs` of the semidiscretization
f::F # `rhs!` of the semidiscretization
alg::Alg # This is our own class written above; Abbreviation for ALGorithm
opts::PairedExplicitRKOptions
finalstep::Bool # added for convenience
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ mutable struct PairedExplicitRK3Integrator{RealT <: Real, uType, Params, Sol, F,
iter::Int # current number of time steps (iteration)
p::Params # will be the semidiscretization from Trixi
sol::Sol # faked
f::F # `rhs` of the semidiscretization
f::F # `rhs!` of the semidiscretization
alg::Alg # This is our own class written above; Abbreviation for ALGorithm
opts::PairedExplicitRKOptions
finalstep::Bool # added for convenience
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ mutable struct PairedExplicitRK4Integrator{RealT <: Real, uType, Params, Sol, F,
iter::Int # current number of time steps (iteration)
p::Params # will be the semidiscretization from Trixi
sol::Sol # faked
f::F # `rhs` of the semidiscretization
f::F # `rhs!` of the semidiscretization
alg::Alg # This is our own class written above; Abbreviation for ALGorithm
opts::PairedExplicitRKOptions
finalstep::Bool # added for convenience
Expand Down

0 comments on commit 926a097

Please sign in to comment.