From 0d72a485b87d6fa9b34c2f565ca584b02ab653ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Rueda-Ram=C3=ADrez?= Date: Thu, 19 Dec 2024 18:25:37 +0100 Subject: [PATCH] Larger threshold for allocations is not really needed --- test/test_tree_3d_mhdmultiion.jl | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/test/test_tree_3d_mhdmultiion.jl b/test/test_tree_3d_mhdmultiion.jl index f661e0be77..6e110f62fb 100644 --- a/test/test_tree_3d_mhdmultiion.jl +++ b/test/test_tree_3d_mhdmultiion.jl @@ -51,8 +51,7 @@ EXAMPLES_DIR = joinpath(examples_dir(), "tree_3d_dgsem") t = sol.t[end] u_ode = sol.u[end] du_ode = similar(u_ode) - # Slightly larger values for allowed allocations due to the size of the multi-ion MHD system - @test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 2000 + @test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 1000 end end @@ -100,8 +99,7 @@ end t = sol.t[end] u_ode = sol.u[end] du_ode = similar(u_ode) - # Slightly larger values for allowed allocations due to the size of the multi-ion MHD system - @test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 2000 + @test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 1000 end end @@ -147,8 +145,7 @@ end t = sol.t[end] u_ode = sol.u[end] du_ode = similar(u_ode) - # Slightly larger values for allowed allocations due to the size of the multi-ion MHD system - @test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 2000 + @test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 1000 end end end