Skip to content

Commit

Permalink
Fix tolerance, fix CI, add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Arpit-Babbar committed Feb 10, 2024
1 parent ac87bed commit ba3bdbb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ amr_callback = AMRCallback(semi, amr_controller,
adapt_initial_condition_only_refine = true)

callbacks = CallbackSet(summary_callback, analysis_callback, alive_callback, save_solution,
stepsize_callback, amr_callback)
stepsize_callback, amr_callback
)

###############################################################################
# run the simulation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# Transonic flow around an airfoil

# This test is taken from the paper below. The values from Case 5 in Table 3 are used to validate
# the scheme and computation of surface forces.

# - Roy Charles Swanson, Stefan Langer (2016)
# Structured and Unstructured Grid Methods (2016)
# [https://ntrs.nasa.gov/citations/20160003623] (https://ntrs.nasa.gov/citations/20160003623)


using Downloads: download
using OrdinaryDiffEq
using Trixi
Expand Down Expand Up @@ -133,7 +143,7 @@ callbacks = CallbackSet(summary_callback, analysis_callback, alive_callback, sav
###############################################################################
# run the simulation

time_int_tol = 1e-11
time_int_tol = 1e-8
sol = solve(ode, RDPK3SpFSAL49(); abstol = time_int_tol, reltol = time_int_tol,
ode_default_options()..., callback = callbacks)
summary_callback() # print the timer summary
18 changes: 9 additions & 9 deletions test/test_parabolic_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -635,16 +635,16 @@ end
end

@trixi_testset "elixir_navierstokes_NACA0012airfoil_mach08.jl" begin
@test_trixi_include(joinpath(EXAMPLES_DIR,
@test_trixi_include(joinpath(examples_dir(), "p4est_2d_dgsem",
"elixir_navierstokes_NACA0012airfoil_mach08.jl"),
l2=[0.00018648657393597384,
0.0005076712152849281,
0.00038074587715240566,
0.0021281773710793315],
linf=[0.5153387749819276,
1.1993620992082363,
0.9077214408394708,
5.666071686983816], tspan=(0.0, 0.001),
l2=[0.000186486564226516,
0.0005076712323400374,
0.00038074588984354107,
0.002128177239782089],
linf=[0.5153387072802718,
1.199362305026636,
0.9077214424040279,
5.666071182328691], tspan=(0.0, 0.001),
initial_refinement_level=0)
end
end
Expand Down

0 comments on commit ba3bdbb

Please sign in to comment.