|
27 | 27 | linf=6.627000273229378e-5) |
28 | 28 | # Ensure that we do not have excessive memory allocations |
29 | 29 | # (e.g., from type instabilities) |
30 | | - @test_allocations(Trixi.rhs!, semi, sol, 75_000) |
| 30 | + semi = ode.p # `semidiscretize` adapts the semi, so we need to obtain it from the ODE problem. |
| 31 | + @test_allocations(Trixi.rhs!, ode.p, sol, 1000) |
31 | 32 | end |
32 | 33 |
|
33 | 34 | @trixi_testset "elixir_advection_basic_gpu.jl Float32" begin |
|
40 | 41 | real_type=Float32) |
41 | 42 | # Ensure that we do not have excessive memory allocations |
42 | 43 | # (e.g., from type instabilities) |
43 | | - @test_allocations(Trixi.rhs!, semi, sol, 70_000_000) |
| 44 | + semi = ode.p # `semidiscretize` adapts the semi, so we need to obtain it from the ODE problem. |
| 45 | + @test_allocations(Trixi.rhs!, ode.p, sol, 1000) |
44 | 46 | end |
45 | 47 | end |
46 | 48 |
|
|
55 | 57 | linf=[0.0014537194925779984]) |
56 | 58 | # Ensure that we do not have excessive memory allocations |
57 | 59 | # (e.g., from type instabilities) |
| 60 | + semi = ode.p # `semidiscretize` adapts the semi, so we need to obtain it from the ODE problem. |
58 | 61 | @test_allocations(Trixi.rhs!, semi, sol, 1000) |
59 | 62 | end |
60 | 63 |
|
|
68 | 71 | real_type=Float32) |
69 | 72 | # Ensure that we do not have excessive memory allocations |
70 | 73 | # (e.g., from type instabilities) |
| 74 | + semi = ode.p # `semidiscretize` adapts the semi, so we need to obtain it from the ODE problem. |
71 | 75 | @test_allocations(Trixi.rhs!, semi, sol, 1000) |
72 | 76 | end |
73 | 77 | end |
|
0 commit comments