|
5 | 5 |
|
6 | 6 | @testset verbose=true "Solid" begin |
7 | 7 | @trixi_testset "solid/oscillating_beam_2d.jl" begin |
8 | | - @test_nowarn_mod trixi_include(@__MODULE__, |
9 | | - joinpath(examples_dir(), "solid", |
10 | | - "oscillating_beam_2d.jl"), |
11 | | - tspan=(0.0, 0.1)) |
| 8 | + @trixi_test_nowarn trixi_include(@__MODULE__, |
| 9 | + joinpath(examples_dir(), "solid", |
| 10 | + "oscillating_beam_2d.jl"), |
| 11 | + tspan=(0.0, 0.1)) |
12 | 12 | @test sol.retcode == ReturnCode.Success |
13 | 13 | @test count_rhs_allocations(sol, semi) == 0 |
14 | 14 | end |
15 | 15 | end |
16 | 16 |
|
17 | 17 | @testset verbose=true "FSI" begin |
18 | 18 | @trixi_testset "fsi/falling_water_column_2d.jl" begin |
19 | | - @test_nowarn_mod trixi_include(@__MODULE__, |
20 | | - joinpath(examples_dir(), "fsi", |
21 | | - "falling_water_column_2d.jl"), |
22 | | - tspan=(0.0, 0.4)) |
| 19 | + @trixi_test_nowarn trixi_include(@__MODULE__, |
| 20 | + joinpath(examples_dir(), "fsi", |
| 21 | + "falling_water_column_2d.jl"), |
| 22 | + tspan=(0.0, 0.4)) |
23 | 23 | @test sol.retcode == ReturnCode.Success |
24 | 24 | @test count_rhs_allocations(sol, semi) == 0 |
25 | 25 | end |
26 | 26 |
|
27 | 27 | @trixi_testset "fsi/dam_break_plate_2d.jl" begin |
28 | 28 | # Use rounded dimensions to avoid warnings |
29 | | - @test_nowarn_mod trixi_include(@__MODULE__, |
30 | | - joinpath(examples_dir(), "fsi", |
31 | | - "dam_break_plate_2d.jl"), |
32 | | - initial_fluid_size=(0.15, 0.29), |
33 | | - tspan=(0.0, 0.4), |
34 | | - dtmax=1e-3) |
| 29 | + @trixi_test_nowarn trixi_include(@__MODULE__, |
| 30 | + joinpath(examples_dir(), "fsi", |
| 31 | + "dam_break_plate_2d.jl"), |
| 32 | + initial_fluid_size=(0.15, 0.29), |
| 33 | + tspan=(0.0, 0.4), |
| 34 | + dtmax=1e-3) |
35 | 35 | @test sol.retcode == ReturnCode.Success |
36 | 36 | @test count_rhs_allocations(sol, semi) == 0 |
37 | 37 | end |
38 | 38 |
|
39 | 39 | @trixi_testset "fsi/dam_break_gate_2d.jl" begin |
40 | | - @test_nowarn_mod trixi_include(@__MODULE__, |
41 | | - joinpath(examples_dir(), "fsi", |
42 | | - "dam_break_gate_2d.jl"), |
43 | | - tspan=(0.0, 0.4), |
44 | | - dtmax=1e-3) |
| 40 | + @trixi_test_nowarn trixi_include(@__MODULE__, |
| 41 | + joinpath(examples_dir(), "fsi", |
| 42 | + "dam_break_gate_2d.jl"), |
| 43 | + tspan=(0.0, 0.4), |
| 44 | + dtmax=1e-3) |
45 | 45 | @test sol.retcode == ReturnCode.Success |
46 | 46 | @test count_rhs_allocations(sol, semi) == 0 |
47 | 47 | end |
48 | 48 |
|
49 | 49 | @trixi_testset "fsi/falling_spheres_2d.jl" begin |
50 | | - @test_nowarn_mod trixi_include(@__MODULE__, |
51 | | - joinpath(examples_dir(), "fsi", |
52 | | - "falling_spheres_2d.jl"), |
53 | | - tspan=(0.0, 1.0)) |
| 50 | + @trixi_test_nowarn trixi_include(@__MODULE__, |
| 51 | + joinpath(examples_dir(), "fsi", |
| 52 | + "falling_spheres_2d.jl"), |
| 53 | + tspan=(0.0, 1.0)) |
54 | 54 | @test sol.retcode == ReturnCode.Success |
55 | 55 | @test count_rhs_allocations(sol, semi) == 0 |
56 | 56 | end |
57 | 57 | end |
58 | 58 |
|
59 | 59 | @testset verbose=true "N-Body" begin |
60 | 60 | @trixi_testset "n_body/n_body_solar_system.jl" begin |
61 | | - @test_nowarn_mod trixi_include(@__MODULE__, |
62 | | - joinpath(examples_dir(), "n_body", |
63 | | - "n_body_solar_system.jl")) |
| 61 | + @trixi_test_nowarn trixi_include(@__MODULE__, |
| 62 | + joinpath(examples_dir(), "n_body", |
| 63 | + "n_body_solar_system.jl")) |
64 | 64 | @test sol.retcode == ReturnCode.Success |
65 | 65 | @test count_rhs_allocations(sol, semi) == 0 |
66 | 66 | end |
67 | 67 |
|
68 | 68 | @trixi_testset "n_body/n_body_benchmark_trixi.jl" begin |
69 | | - @test_nowarn_mod trixi_include(@__MODULE__, |
70 | | - joinpath(examples_dir(), "n_body", |
71 | | - "n_body_benchmark_trixi.jl")) [ |
| 69 | + @trixi_test_nowarn trixi_include(@__MODULE__, |
| 70 | + joinpath(examples_dir(), "n_body", |
| 71 | + "n_body_benchmark_trixi.jl")) [ |
72 | 72 | r"WARNING: Method definition interact!.*\n" |
73 | 73 | ] |
74 | 74 | end |
75 | 75 |
|
76 | 76 | @trixi_testset "n_body/n_body_benchmark_reference.jl" begin |
77 | | - @test_nowarn_mod trixi_include(@__MODULE__, |
78 | | - joinpath(examples_dir(), "n_body", |
79 | | - "n_body_benchmark_reference.jl")) |
| 77 | + @trixi_test_nowarn trixi_include(@__MODULE__, |
| 78 | + joinpath(examples_dir(), "n_body", |
| 79 | + "n_body_benchmark_reference.jl")) |
80 | 80 | end |
81 | 81 |
|
82 | 82 | @trixi_testset "n_body/n_body_benchmark_reference_faster.jl" begin |
83 | | - @test_nowarn_mod trixi_include(joinpath(examples_dir(), "n_body", |
84 | | - "n_body_benchmark_reference_faster.jl")) |
| 83 | + @trixi_test_nowarn trixi_include(joinpath(examples_dir(), "n_body", |
| 84 | + "n_body_benchmark_reference_faster.jl")) |
85 | 85 | end |
86 | 86 | end |
87 | 87 |
|
88 | 88 | @testset verbose=true "Postprocessing" begin |
89 | 89 | @trixi_testset "postprocessing/interpolation_plane.jl" begin |
90 | | - @test_nowarn_mod trixi_include(@__MODULE__, |
91 | | - joinpath(examples_dir(), "postprocessing", |
92 | | - "interpolation_plane.jl"), |
93 | | - tspan=(0.0, 0.01)) [ |
| 90 | + @trixi_test_nowarn trixi_include(@__MODULE__, |
| 91 | + joinpath(examples_dir(), "postprocessing", |
| 92 | + "interpolation_plane.jl"), |
| 93 | + tspan=(0.0, 0.01)) [ |
94 | 94 | r"WARNING: importing deprecated binding Makie.*\n", |
95 | 95 | r"WARNING: using deprecated binding Colors.*\n", |
96 | 96 | r"WARNING: using deprecated binding PlotUtils.*\n", |
|
101 | 101 | @test sol.retcode == ReturnCode.Success |
102 | 102 | end |
103 | 103 | @trixi_testset "postprocessing/interpolation_point_line.jl" begin |
104 | | - @test_nowarn_mod trixi_include(@__MODULE__, |
105 | | - joinpath(examples_dir(), "postprocessing", |
106 | | - "interpolation_point_line.jl")) |
| 104 | + @trixi_test_nowarn trixi_include(@__MODULE__, |
| 105 | + joinpath(examples_dir(), "postprocessing", |
| 106 | + "interpolation_point_line.jl")) |
107 | 107 | @test sol.retcode == ReturnCode.Success |
108 | 108 | end |
109 | 109 | @trixi_testset "postprocessing/postprocessing.jl" begin |
110 | | - @test_nowarn_mod trixi_include(@__MODULE__, |
111 | | - joinpath(examples_dir(), |
112 | | - "postprocessing", |
113 | | - "postprocessing.jl")) |
| 110 | + @trixi_test_nowarn trixi_include(@__MODULE__, |
| 111 | + joinpath(examples_dir(), |
| 112 | + "postprocessing", |
| 113 | + "postprocessing.jl")) |
114 | 114 | @test sol.retcode == ReturnCode.Success |
115 | 115 | end |
116 | 116 | end |
117 | 117 |
|
118 | 118 | @testset verbose=true "Preprocessing" begin |
119 | 119 | @trixi_testset "preprocessing/packing_2d.jl" begin |
120 | | - @test_nowarn_mod trixi_include(@__MODULE__, |
121 | | - joinpath(examples_dir(), "preprocessing", |
122 | | - "packing_2d.jl")) |
| 120 | + @trixi_test_nowarn trixi_include(@__MODULE__, |
| 121 | + joinpath(examples_dir(), "preprocessing", |
| 122 | + "packing_2d.jl")) |
123 | 123 | @test sol.retcode == ReturnCode.Terminated |
124 | 124 | end |
125 | 125 | @trixi_testset "preprocessing/packing_2d.jl validation" begin |
126 | | - @test_nowarn_mod trixi_include(@__MODULE__, |
127 | | - joinpath(examples_dir(), "preprocessing", |
128 | | - "packing_2d.jl"), particle_spacing=0.4) |
| 126 | + @trixi_test_nowarn trixi_include(@__MODULE__, |
| 127 | + joinpath(examples_dir(), "preprocessing", |
| 128 | + "packing_2d.jl"), |
| 129 | + particle_spacing=0.4) |
129 | 130 | expected_coordinates = [-0.540548 -0.189943 0.191664 0.542741 -0.629391 -0.196159 0.197725 0.63081 -0.629447 -0.196158 0.19779 0.631121 -0.540483 -0.190015 0.191345 0.540433; |
130 | 131 | -0.541127 -0.630201 -0.630119 -0.539294 -0.190697 -0.196942 -0.196916 -0.190324 0.190875 0.197074 0.196955 0.190973 0.541206 0.630323 0.630178 0.541314] |
131 | 132 |
|
132 | 133 | @test isapprox(packed_ic.coordinates, expected_coordinates, atol=1e-5) |
133 | 134 | end |
134 | 135 | @trixi_testset "preprocessing/packing_3d.jl" begin |
135 | | - @test_nowarn_mod trixi_include(@__MODULE__, |
136 | | - joinpath(examples_dir(), "preprocessing", |
137 | | - "packing_3d.jl")) |
| 136 | + @trixi_test_nowarn trixi_include(@__MODULE__, |
| 137 | + joinpath(examples_dir(), "preprocessing", |
| 138 | + "packing_3d.jl")) |
138 | 139 | end |
139 | 140 | end |
140 | 141 | end |
141 | 142 |
|
142 | 143 | @testset verbose=true "DEM" begin |
143 | 144 | @trixi_testset "dem/rectangular_tank_2d.jl" begin |
144 | | - @test_nowarn_mod trixi_include(@__MODULE__, |
145 | | - joinpath(examples_dir(), "dem", |
146 | | - "rectangular_tank_2d.jl"), |
147 | | - tspan=(0.0, 0.1)) |
| 145 | + @trixi_test_nowarn trixi_include(@__MODULE__, |
| 146 | + joinpath(examples_dir(), "dem", |
| 147 | + "rectangular_tank_2d.jl"), |
| 148 | + tspan=(0.0, 0.1)) |
148 | 149 | @test sol.retcode == ReturnCode.Success |
149 | 150 | @test count_rhs_allocations(sol, semi) == 0 |
150 | 151 | end |
|
0 commit comments