Skip to content

Commit

Permalink
check allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
benegee committed Jul 24, 2024
1 parent 63d9606 commit 01084ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_2d_moist_euler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ EXAMPLES_DIR = pkgdir(TrixiAtmo, "examples") # TODO - Do we need a subdirectory
u_ode = sol.u[end]
du_ode = similar(u_ode)
analysis_callback(sol)
@test (@allocated TrixiAtmo.Trixi.rhs!(du_ode, u_ode, semi, t)) < 2000
@test (@allocated TrixiAtmo.Trixi.rhs!(du_ode, u_ode, semi, t)) < 100
# TODO - It performs 1920 allocations. Is that okay? All tests in Trixi take 1000.
end
end
Expand Down Expand Up @@ -67,7 +67,7 @@ end
u_ode = sol.u[end]
du_ode = similar(u_ode)
analysis_callback(sol)
@test (@allocated TrixiAtmo.Trixi.rhs!(du_ode, u_ode, semi, t)) < 2000
@test (@allocated TrixiAtmo.Trixi.rhs!(du_ode, u_ode, semi, t)) < 100
# TODO - It performs 1920 allocations. Is that okay? All tests in Trixi take 1000.
end
end
Expand Down

0 comments on commit 01084ad

Please sign in to comment.