|
15 | 15 | if VERSION < v"1.12" |
16 | 16 | # Older Julia versions produce allocations because `get_neighborhood_search` |
17 | 17 | # is not type-stable with TLSPH. |
18 | | - @test count_rhs_allocations(sol, semi) < 200 |
| 18 | + @test count_rhs_allocations(sol) < 200 |
19 | 19 | else |
20 | | - @test count_rhs_allocations(sol, semi) == 0 |
| 20 | + @test count_rhs_allocations(sol) == 0 |
21 | 21 | end |
22 | 22 | end |
23 | 23 |
|
|
34 | 34 | if VERSION < v"1.12" |
35 | 35 | # Older Julia versions produce allocations because `get_neighborhood_search` |
36 | 36 | # is not type-stable with TLSPH. |
37 | | - @test count_rhs_allocations(sol, semi) < 200 |
| 37 | + @test count_rhs_allocations(sol) < 200 |
38 | 38 | else |
39 | | - @test count_rhs_allocations(sol, semi) == 0 |
| 39 | + @test count_rhs_allocations(sol) == 0 |
40 | 40 | end |
41 | 41 | end |
42 | 42 |
|
|
60 | 60 | if VERSION < v"1.12" |
61 | 61 | # Older Julia versions produce allocations because `get_neighborhood_search` |
62 | 62 | # is not type-stable with TLSPH. |
63 | | - @test count_rhs_allocations(sol, semi) < 200 |
| 63 | + @test count_rhs_allocations(sol) < 200 |
64 | 64 | else |
65 | | - @test count_rhs_allocations(sol, semi) == 0 |
| 65 | + @test count_rhs_allocations(sol) == 0 |
66 | 66 | end |
67 | 67 | end |
68 | 68 | end |
|
79 | 79 | if VERSION < v"1.12" |
80 | 80 | # Older Julia versions produce allocations because `get_neighborhood_search` |
81 | 81 | # is not type-stable with TLSPH. |
82 | | - @test count_rhs_allocations(sol, semi) < 200 |
| 82 | + @test count_rhs_allocations(sol) < 200 |
83 | 83 | else |
84 | | - @test count_rhs_allocations(sol, semi) == 0 |
| 84 | + @test count_rhs_allocations(sol) == 0 |
85 | 85 | end |
86 | 86 | end |
87 | 87 |
|
|
98 | 98 | if VERSION < v"1.12" |
99 | 99 | # Older Julia versions produce allocations because `get_neighborhood_search` |
100 | 100 | # is not type-stable with TLSPH. |
101 | | - @test count_rhs_allocations(sol, semi) < 200 |
| 101 | + @test count_rhs_allocations(sol) < 200 |
102 | 102 | else |
103 | | - @test count_rhs_allocations(sol, semi) == 0 |
| 103 | + @test count_rhs_allocations(sol) == 0 |
104 | 104 | end |
105 | 105 | end |
106 | 106 |
|
|
125 | 125 | if VERSION < v"1.12" |
126 | 126 | # Older Julia versions produce allocations because `get_neighborhood_search` |
127 | 127 | # is not type-stable with TLSPH. |
128 | | - @test count_rhs_allocations(sol, semi) < 200 |
| 128 | + @test count_rhs_allocations(sol) < 200 |
129 | 129 | else |
130 | | - @test count_rhs_allocations(sol, semi) == 0 |
| 130 | + @test count_rhs_allocations(sol) == 0 |
131 | 131 | end |
132 | 132 |
|
133 | 133 | # Use split integration and verify that we need fewer than 400 iterations |
|
141 | 141 | if VERSION < v"1.12" |
142 | 142 | # Older Julia versions produce allocations because `get_neighborhood_search` |
143 | 143 | # is not type-stable with TLSPH. |
144 | | - @test count_rhs_allocations(sol, semi) < 200 |
| 144 | + @test count_rhs_allocations(sol) < 200 |
145 | 145 | else |
146 | | - @test count_rhs_allocations(sol, semi) == 0 |
| 146 | + @test count_rhs_allocations(sol) == 0 |
147 | 147 | end |
148 | 148 |
|
149 | 149 | # Use stage-level coupling and verify that it is not compatible with |
|
191 | 191 | if VERSION < v"1.12" |
192 | 192 | # Older Julia versions produce allocations because `get_neighborhood_search` |
193 | 193 | # is not type-stable with TLSPH. |
194 | | - @test count_rhs_allocations(sol, semi) < 200 |
| 194 | + @test count_rhs_allocations(sol) < 200 |
195 | 195 | else |
196 | | - @test count_rhs_allocations(sol, semi) == 0 |
| 196 | + @test count_rhs_allocations(sol) == 0 |
197 | 197 | end |
198 | 198 | end |
199 | 199 |
|
|
208 | 208 | if VERSION < v"1.12" |
209 | 209 | # Older Julia versions produce allocations because `get_neighborhood_search` |
210 | 210 | # is not type-stable with TLSPH. |
211 | | - @test count_rhs_allocations(sol, semi) < 500 |
| 211 | + @test count_rhs_allocations(sol) < 500 |
212 | 212 | else |
213 | | - @test count_rhs_allocations(sol, semi) == 0 |
| 213 | + @test count_rhs_allocations(sol) == 0 |
214 | 214 | end |
215 | 215 | end |
216 | 216 | end |
|
221 | 221 | joinpath(examples_dir(), "n_body", |
222 | 222 | "n_body_solar_system.jl")) |
223 | 223 | @test sol.retcode == ReturnCode.Success |
224 | | - @test count_rhs_allocations(sol, semi) == 0 |
| 224 | + @test count_rhs_allocations(sol) == 0 |
225 | 225 | end |
226 | 226 |
|
227 | 227 | @trixi_testset "n_body/n_body_benchmark_trixi.jl" begin |
|
306 | 306 | "rectangular_tank_2d.jl"), |
307 | 307 | tspan=(0.0, 0.1)) |
308 | 308 | @test sol.retcode == ReturnCode.Success |
309 | | - @test count_rhs_allocations(sol, semi) == 0 |
| 309 | + @test count_rhs_allocations(sol) == 0 |
310 | 310 | end |
311 | 311 | end |
312 | 312 | @trixi_testset "dem/collapsing_sand_pile_3d.jl" begin |
|
315 | 315 | "collapsing_sand_pile_3d.jl"), |
316 | 316 | tspan=(0.0, 0.1)) |
317 | 317 | @test sol.retcode == ReturnCode.Success |
318 | | - @test count_rhs_allocations(sol, semi) == 0 |
| 318 | + @test count_rhs_allocations(sol) == 0 |
319 | 319 | end |
320 | 320 | end |
0 commit comments