Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Doehring <[email protected]>
  • Loading branch information
warisa-r and DanielDoehring authored Mar 14, 2024
1 parent 11e487c commit 6cb0572
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions examples/tree_1d_dgsem/elixir_advection_PERK2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,3 @@ sol = Trixi.solve(ode, ode_algorithm,
# Print the timer summary
summary_callback()

# Show the error of the elixir
analysis_callback(sol)
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function solve!(integrator::PERK2Integrator)
end

# Higher stages
for stage in 3:(alg.num_stages)
for stage in 3:alg.num_stages
# Construct current state
@threaded for i in eachindex(integrator.du)
integrator.u_tmp[i] = integrator.u[i] +
Expand Down
4 changes: 2 additions & 2 deletions test/test_tree_1d_advection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ end

@trixi_testset "elixir_advection_PERK2.jl" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_PERK2.jl"),
l2=[0.011662300515980219],
linf=[0.01647256923710194])
l2=[0.0006911538643023453],
linf=[0.0009859411767757509])
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
let
Expand Down

0 comments on commit 6cb0572

Please sign in to comment.