Skip to content

Commit

Permalink
Add test for trixi_include_changeprecision
Browse files Browse the repository at this point in the history
  • Loading branch information
efaulhaber committed Dec 24, 2024
1 parent 55c4a8d commit 69cf49e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/examples/examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,18 @@
@test count_rhs_allocations(sol, semi) == 0
end
end

@testset "Float32" begin
@test_nowarn_mod trixi_include_changeprecision(Float32,
@__MODULE__,
joinpath(examples_dir(),
"fluid",
"dam_break_2d.jl"),
tspan=(0, 0.1))
@test sol.retcode == ReturnCode.Success
@test count_rhs_allocations(sol, semi) == 0
@test eltype(sol) == Float32
end
end

@trixi_testset "fluid/dam_break_oil_film_2d.jl" begin
Expand Down

0 comments on commit 69cf49e

Please sign in to comment.