Skip to content

Commit

Permalink
Reduce amr_interval to pass CI?
Browse files Browse the repository at this point in the history
  • Loading branch information
Arpit-Babbar committed Feb 16, 2024
1 parent 007bee6 commit 1b85765
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions test/test_p4est_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -565,17 +565,23 @@ end
@trixi_testset "elixir_euler_NACA0012airfoil_mach085.jl" begin
@test_trixi_include(joinpath(EXAMPLES_DIR,
"elixir_euler_NACA0012airfoil_mach085.jl"),
l2=[5.763969153227137e-7,
6.7983731359493415e-6,
1.1136096550405798e-5,
0.000684989462539266],
linf=[0.002411375295350659,
0.04305328756849549,
0.04272712024785543,
2.981598654532575],
l2=[
5.59290009961641e-7,
6.709050529319647e-6,
1.0832036354579161e-5,
0.00066312990043519,
],
linf=[
0.0020566846007074946,
0.038004977184127715,
0.03680677713072339,
2.5456859522627036,
],
base_level=0, med_level=1, max_level=1,
amr_interval=1, cfl=0.1,
tspan=(0.0, 0.0001))
amr_interval=5, cfl=0.25,
tspan=(0.0, 0.0001),
adapt_initial_condition=false,
adapt_initial_condition_only_refine=false)

u_ode = copy(sol.u[end])
du_ode = zero(u_ode) # Just a placeholder in this case
Expand All @@ -587,8 +593,12 @@ end
lift = Trixi.analyze(lift_coefficient, du, u, tspan[2], mesh, equations, solver,
semi.cache)

@test isapprox(lift, 0.029723886821464478, atol = 1e-13)
@test isapprox(drag, 0.1463432877615894, atol = 1e-13)
@show drag, lift
@show analysis_callback(sol).l2
@show analysis_callback(sol).linf

@test isapprox(lift, 0.030280394867287057, atol = 1e-13)
@test isapprox(drag, 0.13085519947527666, atol = 1e-13)
end
end

Expand Down

0 comments on commit 1b85765

Please sign in to comment.