From e90026244079270008594450ebfea2ed8d33c333 Mon Sep 17 00:00:00 2001 From: Daniel Doehring Date: Tue, 24 Oct 2023 07:23:13 +0200 Subject: [PATCH] Add timer for outer RK loop for SSPRK33 (#1686) * Add timer for outer RK loop * Increase alloc check --------- Co-authored-by: Hendrik Ranocha --- src/time_integration/methods_SSP.jl | 2 +- test/test_tree_2d_euler.jl | 2 +- test/test_tree_2d_eulermulti.jl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/time_integration/methods_SSP.jl b/src/time_integration/methods_SSP.jl index 6424dde7d31..733f89c2158 100644 --- a/src/time_integration/methods_SSP.jl +++ b/src/time_integration/methods_SSP.jl @@ -148,7 +148,7 @@ function solve!(integrator::SimpleIntegratorSSP) callbacks = integrator.opts.callback integrator.finalstep = false - while !integrator.finalstep + @trixi_timeit timer() "main loop" while !integrator.finalstep if isnan(integrator.dt) error("time step size `dt` is NaN") end diff --git a/test/test_tree_2d_euler.jl b/test/test_tree_2d_euler.jl index 660e4dcf1be..79a650ded8a 100644 --- a/test/test_tree_2d_euler.jl +++ b/test/test_tree_2d_euler.jl @@ -137,7 +137,7 @@ EXAMPLES_DIR = pkgdir(Trixi, "examples", "tree_2d_dgsem") t = sol.t[end] u_ode = sol.u[end] du_ode = similar(u_ode) - @test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 1000 + @test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 15000 end end diff --git a/test/test_tree_2d_eulermulti.jl b/test/test_tree_2d_eulermulti.jl index c38c78ba6fd..c454a6bcfbf 100644 --- a/test/test_tree_2d_eulermulti.jl +++ b/test/test_tree_2d_eulermulti.jl @@ -44,7 +44,7 @@ EXAMPLES_DIR = pkgdir(Trixi, "examples", "tree_2d_dgsem") t = sol.t[end] u_ode = sol.u[end] du_ode = similar(u_ode) - @test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 1000 + @test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 15000 end end