Skip to content

Commit

Permalink
Larger threshold for allocations is not really needed
Browse files Browse the repository at this point in the history
  • Loading branch information
amrueda committed Dec 19, 2024
1 parent 5c55d00 commit 0d72a48
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/test_tree_3d_mhdmultiion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0d72a48

Please sign in to comment.