Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
amrueda committed Oct 30, 2023
1 parent 4e65fe0 commit e836b7f
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions test/test_tree_2d_mhd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -328,37 +328,37 @@ end
@test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 1000
end
end

@trixi_testset "elixir_mhd_shockcapturing_subcell.jl" begin
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_mhd_shockcapturing_subcell.jl"),
l2 = [2.9974425783503109e-02,
7.2849646345685956e-02,
7.2488477174662239e-02,
0.0000000000000000e+00,
1.2507971380965512e+00,
1.8929505145499678e-02,
1.2218606317164420e-02,
0.0000000000000000e+00,
3.0154796910479838e-03],
linf = [3.2147382412340830e-01,
1.3709471664007811e+00,
1.3465154685288383e+00,
0.0000000000000000e+00,
1.6051257523415284e+01,
3.0564266749926644e-01,
2.3908016329805595e-01,
0.0000000000000000e+00,
1.3711262178549158e-01],
tspan = (0.0, 0.003))
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
let
t = sol.t[end]
u_ode = sol.u[end]
du_ode = similar(u_ode)
@test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 15000
end
end
l2=[2.9974425783503109e-02,
7.2849646345685956e-02,
7.2488477174662239e-02,
0.0000000000000000e+00,
1.2507971380965512e+00,
1.8929505145499678e-02,
1.2218606317164420e-02,
0.0000000000000000e+00,
3.0154796910479838e-03],
linf=[3.2147382412340830e-01,
1.3709471664007811e+00,
1.3465154685288383e+00,
0.0000000000000000e+00,
1.6051257523415284e+01,
3.0564266749926644e-01,
2.3908016329805595e-01,
0.0000000000000000e+00,
1.3711262178549158e-01],
tspan=(0.0, 0.003))
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
let
t = sol.t[end]
u_ode = sol.u[end]
du_ode = similar(u_ode)
@test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 15000
end
end
end

end # module

0 comments on commit e836b7f

Please sign in to comment.