Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Taal pass Taam tests #267

Merged
merged 146 commits into from
Nov 11, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
4fa2726
Mark all current elixir/parameter file tests as unchecked
sloede Oct 29, 2020
d66119c
Ensure final dt is not approximately zero
sloede Oct 29, 2020
dfb1a30
Return errors from run() and run_euler_gravity() as named tuples
sloede Oct 29, 2020
4c06b18
Fix time step calculation in Taal (-> calculate max speed per *elemen…
sloede Oct 29, 2020
6d45c78
Automatically convert time span to floating point values
sloede Oct 29, 2020
18b77db
Match default analysis_polydeg from Taam in Taal
sloede Oct 29, 2020
e0315f7
Match all existing elixirs to their Taal counterparts and mark confir…
sloede Oct 29, 2020
7e8e4ab
Temporarily use Taam-style time step calculation for Euler 2D
sloede Oct 29, 2020
1bb8665
Restore Taam CFLs
sloede Oct 29, 2020
9ebe84f
Restore Taam CFLs
sloede Oct 29, 2020
52a3bc1
Add first confirmed 2D tests
sloede Oct 29, 2020
7dfad53
Fix divb l2 norm
sloede Oct 29, 2020
c935403
Do not run AMR after final step
sloede Oct 29, 2020
b212908
Revert Taal time step calculation for hypdiff
sloede Oct 29, 2020
a1e1ad6
Add first confirmed tests for Taal + HypDiff
sloede Oct 29, 2020
72f242e
Fix index error
sloede Oct 29, 2020
5778248
"Break" MHD again such that results for Taal and Taam can match
sloede Oct 30, 2020
1c5f7d4
Restore Taam CFLs
sloede Oct 30, 2020
c2d946d
Add first confirmed 2D MHD tests
sloede Oct 30, 2020
6936040
Properly break 2D stepsize calculaton only for MHD
sloede Oct 30, 2020
48c15e5
Fix naming for consistency
sloede Oct 30, 2020
c6b96fd
"Break" Taal to match 3D Taam results
sloede Oct 30, 2020
cacd77f
Restore Taam CFLs
sloede Oct 30, 2020
37d7c02
Add first confirmed 3D tests
sloede Oct 30, 2020
d6ad86f
"Break" Taal time step calculation for advection 2D and update CFLs i…
sloede Oct 30, 2020
58dd424
Fix elixirs
sloede Oct 30, 2020
235a7ff
Add back old values
sloede Oct 30, 2020
0502f56
Add back old values
sloede Oct 30, 2020
17e4667
change cfl and confirm results for euler_blast_wave_shockcapturing_amr
andrewwinters5000 Oct 30, 2020
985b2bf
Disable all Taal tests that are not yet checked
sloede Oct 30, 2020
168bd5d
Sedov tests all confirmed, this is sensative to CFL so it shrank in T…
andrewwinters5000 Oct 30, 2020
c66737c
Merge branch 'msl/sync-taal-taam' of https://github.com/trixi-framewo…
andrewwinters5000 Oct 30, 2020
c8d1678
Remove comments from unfinished tests to make merging easier
sloede Oct 30, 2020
db9ee15
Merge branch 'dev' into msl/sync-taal-taam
sloede Oct 30, 2020
2a307d1
Manually merge changes from #201 (cherry-picking did not work properly)
sloede Nov 2, 2020
5d2efc7
Fix 1D test
sloede Nov 2, 2020
702c527
Fix missing comma in exports
sloede Nov 2, 2020
694e325
Manually merge reference values from #273
sloede Nov 2, 2020
8300ce5
Merge branch 'dev' into msl/sync-taal-taam
sloede Nov 2, 2020
369acee
Merge branch 'dev' into msl/sync-taal-taam
sloede Nov 2, 2020
85d6dc5
Fix 3D HypDiff LLF test after 3S* scheme was ported to Taal
sloede Nov 2, 2020
abb9e5e
Mark reference values with differences to master
sloede Nov 2, 2020
54be57b
confirm 2d/elixir_euler_khi_shockcapturing.jl
ranocha Nov 2, 2020
1b0b4f0
Verify Orszag-Tang tests
sloede Nov 2, 2020
4bdb77f
Update MHD rotor test without full verification yet
sloede Nov 2, 2020
839cb99
confirm elixir_euler_khi_shockcapturing_amr.jl
ranocha Nov 2, 2020
76027cd
Update MHD blas wave test without full verification yet
sloede Nov 2, 2020
fb412ec
Verify 2D HypDiff LLF test
sloede Nov 2, 2020
f28317e
changes suggested by @sloede
ranocha Nov 3, 2020
50c7e2d
Merge pull request #281 from ranocha/hr/sync
ranocha Nov 3, 2020
d457876
Verify Euler vortex elixirs
sloede Nov 3, 2020
c9a7b79
Merge branch 'dev' into msl/sync-taal-taam
sloede Nov 3, 2020
3e09b46
Add "cfl-magic" to mark tests that are currently unresolvable
sloede Nov 3, 2020
e161124
mark more tests as taal-check-me
ranocha Nov 3, 2020
e2cef84
Merge branch 'msl/sync-taal-taam' of github.com:trixi-framework/Trixi…
ranocha Nov 3, 2020
ac6946d
mark elixir_euler_blob_shockcapturing_amr.jl as cfl-magic
ranocha Nov 3, 2020
f09c84f
5x toml2elixir in 3d
Nov 3, 2020
2429736
review fixes
Nov 3, 2020
968a81a
Add taal-check-me markers
sloede Nov 4, 2020
cba406e
Confirm 2 more 3D tests
sloede Nov 4, 2020
2fa3aee
Make elixir run again (but not verified yet)
sloede Nov 4, 2020
e489606
Merge branch 'dev' into msl/sync-taal-taam
sloede Nov 4, 2020
f50a4c2
Re-add medium Sedov to exports
sloede Nov 4, 2020
160f5e4
taal-confirmed testcases
Nov 4, 2020
b552a37
Merge pull request #283 from trixi-framework/toml2elixirsync
sloede Nov 4, 2020
1b511d6
Remove accidentally duplicated method
sloede Nov 4, 2020
9a25959
Fix test file
sloede Nov 4, 2020
0e473b1
Fix additional tests
sloede Nov 4, 2020
9e44925
Set propery tspan for TGV test
sloede Nov 4, 2020
5168c6a
Mix more 1D elixirs
sloede Nov 4, 2020
5a65374
Mix elixir_euler_sedov_blast_wave_shockcapturing_amr.jl
sloede Nov 4, 2020
e5543c7
Mix elixir_euler_weak_blast_wave_shockcapturing.jl
sloede Nov 4, 2020
458d5ff
Add tests for 1D initial conditions
sloede Nov 4, 2020
d9ec680
Add `Trixi.` to unexported symbols
sloede Nov 4, 2020
e92eebe
Add restart callback
sloede Nov 4, 2020
7a6e847
Add comment about fixing the CFL number
sloede Nov 4, 2020
7e46b5e
Add comment about creating a linear_x elixir
sloede Nov 4, 2020
d262cc7
Merge pull request #293 from trixi-framework/msl/mix-more-1d-elixirs
sloede Nov 4, 2020
252b487
Mix elixir_advection_amr_nonperiodic.jl
sloede Nov 4, 2020
463484c
Port time integration schemes to DiffEq interface
sloede Nov 4, 2020
64ec0ec
Mix more elixirs with different time integration schemes
sloede Nov 4, 2020
e561f14
Use correct elixir and override for ODE algorithms
sloede Nov 4, 2020
a9b6e29
Mark EC mortar test as confirmed since we will never port it
sloede Nov 4, 2020
c8ec32b
Rename parameters_file -> elixir for `test_trixi_include`
sloede Nov 4, 2020
798a08e
Apply suggestions from code review
sloede Nov 5, 2020
91183f3
Rename custom time integration schemes to follow DiffEq.jl convention…
sloede Nov 5, 2020
c01f557
Merge pull request #294 from trixi-framework/msl/must-mix-more-elixirs
ranocha Nov 5, 2020
983bda9
Port remaining IC tests to Taal
sloede Nov 5, 2020
0cb7e71
Add missing `Trixi.` prefixes
sloede Nov 5, 2020
9568b89
Merge pull request #296 from trixi-framework/msl/need-more-elixirs-to…
ranocha Nov 5, 2020
00101c4
Convert first batch of tests
sloede Nov 5, 2020
b84ef0a
Mix elixirs & verify three more tests
sloede Nov 5, 2020
2f7f549
Minor fixes following suggestions/comments by @ranocha
sloede Nov 6, 2020
e4a939e
Merge pull request #299 from trixi-framework/msl/make-3d-great-again
sloede Nov 6, 2020
6bf941b
WIP: comparing examples/2d/elixir_eulergravity_eoc_test.jl
ranocha Nov 6, 2020
d1749e7
confirm elixir_eulergravity_eoc_test.jl
ranocha Nov 6, 2020
e1df916
confirm 3d/elixir_eulergravity_eoc_test.jl
ranocha Nov 6, 2020
72f0fe3
confirm examples/2d/elixir_eulergravity_sedov_blast_wave.jl
ranocha Nov 6, 2020
ad086d0
confirm another eulergravity_sedov test but don't port it
ranocha Nov 6, 2020
65bf111
remove code used for confirming Taal/Taam
ranocha Nov 6, 2020
8c4b081
Add missing docstring
sloede Nov 6, 2020
4480247
Merge pull request #305 from trixi-framework/sync-eulergravity_eoc_test
sloede Nov 6, 2020
ef253be
Merge branch 'msl/sync-taal-taam' into sync-eulergravity_sedov
ranocha Nov 7, 2020
26d0fa7
implement TrivialCallback
ranocha Nov 8, 2020
6c56c05
confirm elixir_euler_blob_shockcapturing_mortar.jl
ranocha Nov 9, 2020
9329dd7
remove superflous analysis quantity for Jeans
ranocha Nov 9, 2020
3c094db
Merge pull request #309 from trixi-framework/remove_extended_tests
ranocha Nov 9, 2020
cfa7152
remove unnecessary part when printing a TrivialCallback [skip ci]
ranocha Nov 9, 2020
73575e9
Merge pull request #306 from trixi-framework/sync-eulergravity_sedov
sloede Nov 9, 2020
740500e
Add new elixir which works in general but still produces differences …
sloede Nov 9, 2020
0fa4e89
Port MHD Orszag-Tang 3D
sloede Nov 9, 2020
129d4cd
Add Alfven wave mortar test 3D + fix calc_mortar_fluxes for noncons t…
sloede Nov 9, 2020
1acf401
move eulergravity tests to new file
ranocha Nov 9, 2020
5d5beaf
Add 3D Euler Sedov blast (without test yet)
sloede Nov 9, 2020
d41552f
confirm elixir_euler_eoc_test.jl
ranocha Nov 9, 2020
de0a255
confirm elixir_hyp_diff_eoc_test.jl
ranocha Nov 9, 2020
6ef9632
Fix Euler AMR elixir
sloede Nov 9, 2020
fcbe7ce
Confirm new test
sloede Nov 9, 2020
fd95201
mark Jeans as confirmed with CFL magic
ranocha Nov 9, 2020
b66f475
confirm 1d/elixir_euler_sedov_blast_wave_shockcapturing_amr.jl (resol…
ranocha Nov 9, 2020
bacf4d9
confirm 2d cfl-magic examples
ranocha Nov 9, 2020
8cc33e6
confirm paper examples
ranocha Nov 9, 2020
a4ac1f8
euler_ec tests now taal-confirmed
Nov 9, 2020
1dad9cb
euler shockcapturing tests taal-confirmed
Nov 9, 2020
c3e7226
Fix Hennemann & Gassner indicator 3D
sloede Nov 9, 2020
98d551d
Further improve 3D Sedov elixir (not yet working)
sloede Nov 9, 2020
31a2aa6
Fix elixir
sloede Nov 10, 2020
91c7d62
Merge branch '3d-or-not-3d' into msl/3d-or-not-3d
sloede Nov 10, 2020
f8b830d
Mark Taam as confirmed
sloede Nov 10, 2020
a99a19a
Add #DOF and #elements to default analysis output
sloede Nov 10, 2020
0fd948d
Merge pull request #313 from ranocha/cfl-magic
ranocha Nov 10, 2020
82391a1
euler-shockcapturing_amr elixir/parameter build, but not identical ye…
Nov 10, 2020
6d8eac2
Adapt elixir
sloede Nov 10, 2020
5d0941c
Remove unnecessary TOML file
sloede Nov 10, 2020
63f8082
Confirm last 3D test (except blob)
sloede Nov 10, 2020
7f09e7c
Fix indentatin
sloede Nov 10, 2020
1f2b531
Export initial_condition_density_pulse
sloede Nov 10, 2020
0f3d051
Apply suggestions from @ranocha
sloede Nov 10, 2020
258c254
Remove unnecessary Trixi. prefixes
sloede Nov 10, 2020
b3520bd
Remove unnecessary Trixi. prefixes
sloede Nov 10, 2020
a2bedcb
Remove unnecessary Trixi. prefixes
sloede Nov 10, 2020
fa1fd45
Merge pull request #311 from trixi-framework/msl/3d-or-not-3d
ranocha Nov 10, 2020
e7a5e88
Merge branch 'dev' into msl/sync-taal-taam
sloede Nov 11, 2020
0764e77
trixi_test_include -> @trixi_test_include
sloede Nov 11, 2020
14797dc
Make 3D tests pass
sloede Nov 11, 2020
16bb5ce
remove taal-confirmed notice from Taal tests (keep it for Taam)
ranocha Nov 11, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/2d/elixir_advection_basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ callbacks = CallbackSet(summary_callback, stepsize_callback,
###############################################################################
# run the simulation

sol = solve(ode, CarpenterKennedy2N54(williamson_condition=false), dt=1.0, # solve needs some value here but it will be overwritten by the stepsize_callback
sol = solve(ode, CarpenterKennedy2N54(williamson_condition=false),
dt=1.0, # solve needs some value here but it will be overwritten by the stepsize_callback
save_everystep=false, callback=callbacks, maxiters=1e5);
summary_callback() # print the timer summary
4 changes: 3 additions & 1 deletion examples/3d/elixir_euler_blob_amr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ amr_callback = AMRCallback(semi, amr_controller,
adapt_initial_condition=false,
adapt_initial_condition_only_refine=true)

stepsize_callback = StepsizeCallback(cfl=1.7)
# FIXME Taal restore after Taam sync
# stepsize_callback = StepsizeCallback(cfl=1.7)
stepsize_callback = StepsizeCallback(cfl=0.9)

save_solution = SaveSolutionCallback(interval=200,
save_initial_solution=true,
Expand Down
2 changes: 1 addition & 1 deletion examples/3d/parameters_euler_blob_amr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Simulation
ndims = 3
equations = "CompressibleEulerEquations"
gamma = 1.66667
gamma = 1.6666666666666667
initial_condition = "initial_condition_blob"
t_start = 0.0
t_end = 2.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,10 @@ using OrdinaryDiffEq
using Trixi


# If you're developing an elixir for Trixi for some project, you can define
# initial conditions etc. directly inside the elixir, e.g. using the code below
# (which is commented out).
# For example, running
# trixi_include("examples/2d/elixir_eulergravity_jeans_instability.jl")
# from the REPL works fine with that setting.
# However, we're running CI with automated tests of Trixi. In that case,
# we get annoying world age issues. Hence, we keep initial_condition_jeans_instability
# in Trixi/src for now.
#
# function initial_condition_jeans_instability(x, t,
# equations::CompressibleEulerEquations2D)
# # Jeans gravitational instability test case
# # see Derigs et al. https://arxiv.org/abs/1605.03572; Sec. 4.6
# # OBS! this uses cgs (centimeter, gram, second) units
# # periodic boundaries
# # domain size [0,L]^2 depends on the wave number chosen for the perturbation
# # OBS! Be very careful here L must be chosen such that problem is periodic
# # typical final time is T = 5
# # gamma = 5/3
# dens0 = 1.5e7 # g/cm^3
# pres0 = 1.5e7 # dyn/cm^2
# delta0 = 1e-3
# # set wave vector values for pertubation (units 1/cm)
# # see FLASH manual: https://flash.uchicago.edu/site/flashcode/user_support/flash_ug_devel.pdf
# kx = 2.0*pi/0.5 # 2π/λ_x, λ_x = 0.5
# ky = 0.0 # 2π/λ_y, λ_y = 1e10
# k_dot_x = kx*x[1] + ky*x[2]
# # perturb density and pressure away from reference states ρ_0 and p_0
# dens = dens0*(1.0 + delta0*cos(k_dot_x)) # g/cm^3
# pres = pres0*(1.0 + equations.gamma*delta0*cos(k_dot_x)) # dyn/cm^2
# # flow starts as stationary
# velx = 0.0 # cm/s
# vely = 0.0 # cm/s
# return Trixi.prim2cons((dens, velx, vely, pres), equations)
# end
"""
initial_condition_jeans_instability(x, t,
equations::Union{CompressibleEulerEquations2D,
HyperbolicDiffusionEquations2D})

The classical Jeans instability taken from
- Michael Schlottke-Lakemper, Andrew R. Winters, Hendrik Ranocha, Gregor J. Gassner (2020)
Expand Down
4 changes: 2 additions & 2 deletions src/Trixi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ module Trixi
using LinearAlgebra: dot
using Pkg.TOML: parsefile, parse
using Printf: @printf, @sprintf, println
using Profile: clear_malloc_data
using Random: seed! # TODO: Taal, can be removed
using Profile: clear_malloc_data # TODO: Taal, remove this dependency
using Random: seed! # TODO: Taal, remove this dependency

import DiffEqBase: ODEProblem, ODESolution, get_du, u_modified!, set_proposed_dt!, terminate!
using DiffEqCallbacks: CallbackSet, DiscreteCallback
Expand Down
42 changes: 21 additions & 21 deletions test/test_examples_1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,64 +17,64 @@ const EXAMPLES_DIR = joinpath(pathof(Trixi) |> dirname |> dirname, "examples", "
# Run basic tests
@testset "Examples 1D" begin
@testset "taal-confirmed elixir_advection_basic.jl" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_basic.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_basic.jl"),
l2 = [5.581321238071356e-6],
linf = [3.270561745361e-5])
end

@testset "taal-confirmed elixir_advection_amr.jl" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_amr.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_amr.jl"),
l2 = [0.3540209654959832],
linf = [0.9999905446337742])
end

@testset "taal-confirmed elixir_advection_amr_nonperiodic.jl" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_amr_nonperiodic.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_amr_nonperiodic.jl"),
l2 = [4.317984162166343e-6],
linf = [3.239622040581043e-5])
end


@testset "taal-confirmed elixir_euler_source_terms.jl" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_source_terms.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_source_terms.jl"),
l2 = [2.243591980786875e-8, 1.8007794300157155e-8, 7.701353735993148e-8],
linf = [1.6169171668245497e-7, 1.4838378192827406e-7, 5.407841152660353e-7])
end

@testset "taal-confirmed elixir_euler_density_wave.jl" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_density_wave.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_density_wave.jl"),
l2 = [0.0011482554828446659, 0.00011482554838682677, 5.741277410494742e-6],
linf = [0.004090978306810378, 0.0004090978313616156, 2.045489169688608e-5])
end

@testset "taal-confirmed elixir_euler_density_wave.jl with initial_condition_density_pulse" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_density_wave.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_density_wave.jl"),
l2 = [0.003724642049410045, 0.0037246420494099837, 0.0018623210247047657],
linf = [0.018538787219922304, 0.018538787219903874, 0.009269393609915078],
initial_condition = initial_condition_density_pulse)
end

@testset "taal-confirmed elixir_euler_density_wave.jl with initial_condition_constant" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_density_wave.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_density_wave.jl"),
l2 = [7.058654266604569e-16, 1.9703187362332313e-14, 7.286819681608443e-15],
linf = [3.774758283725532e-15, 6.733502644351574e-14, 2.4868995751603507e-14],
initial_condition = initial_condition_constant)
end

@testset "taal-confirmed elixir_euler_nonperiodic.jl" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_nonperiodic.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_nonperiodic.jl"),
l2 = [3.8103398423084437e-6, 1.6765350427819571e-6, 7.733123446821975e-6],
linf = [1.2975101617795914e-5, 9.274867029507305e-6, 3.093686036947929e-5])
end

@testset "taal-confirmed elixir_euler_ec.jl" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_ec.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_ec.jl"),
l2 = [0.11948926375393912, 0.15554606230413676, 0.4466895989733186],
linf = [0.2956500342985863, 0.28341906267346123, 1.0655211913235232])
end

@testset "taal-confirmed elixir_euler_ec.jl with flux_shima_etal" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_ec.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_ec.jl"),
l2 = [0.06423364669980625, 0.08503530800170918, 0.2407844935006154],
linf = [0.3212150514022287, 0.3070502221852398, 1.1446658347785068],
maxiters=10,
Expand All @@ -83,7 +83,7 @@ const EXAMPLES_DIR = joinpath(pathof(Trixi) |> dirname |> dirname, "examples", "
end

@testset "taal-confirmed elixir_euler_ec.jl with flux_ranocha" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_ec.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_ec.jl"),
l2 = [0.06424564531300972, 0.08500942143178748, 0.2407606831620822],
linf = [0.3215742010701772, 0.30592054370082256, 1.1453122141121064],
maxiters=10,
Expand All @@ -92,7 +92,7 @@ const EXAMPLES_DIR = joinpath(pathof(Trixi) |> dirname |> dirname, "examples", "
end

@testset "taal-confirmed elixir_euler_ec.jl with flux_hll" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_ec.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_ec.jl"),
l2 = [0.0575654253650954, 0.0748264642646861, 0.21532027367350406],
linf = [0.17289848639699257, 0.22023865765090028, 0.6349097763679086],
maxiters=10,
Expand All @@ -101,33 +101,33 @@ const EXAMPLES_DIR = joinpath(pathof(Trixi) |> dirname |> dirname, "examples", "
end

@testset "taal-confirmed elixir_euler_sedov_blast_wave_shockcapturing_amr.jl" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_sedov_blast_wave_shockcapturing_amr.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_sedov_blast_wave_shockcapturing_amr.jl"),
l2 = [1.252250990134887, 0.068566581088377, 0.9448804645921002],
linf = [2.989362275712484, 0.16948139637812973, 2.665646470846281])
end

@testset "taal-confirmed elixir_euler_sedov_blast_wave_shockcapturing_amr.jl with pressure" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_sedov_blast_wave_shockcapturing_amr.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_sedov_blast_wave_shockcapturing_amr.jl"),
l2 = [1.297435677146544, 0.07960523576439762, 0.9453356096003658],
linf = [3.1803117766542313, 0.21385627917778924, 2.665017066963603],
shock_indicator_variable = pressure)
end

@testset "taal-confirmed elixir_euler_sedov_blast_wave_shockcapturing_amr.jl with density" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_sedov_blast_wave_shockcapturing_amr.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_sedov_blast_wave_shockcapturing_amr.jl"),
l2 = [1.2778131494486642, 0.0709461986289949, 0.9456057083034296],
linf = [3.1163652756237115, 0.17652352860779985, 2.66646958937844],
shock_indicator_variable = density)
end

@testset "taal-confirmed elixir_euler_weak_blast_wave_shockcapturing.jl" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_weak_blast_wave_shockcapturing.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_weak_blast_wave_shockcapturing.jl"),
l2 = [0.1166063015913971, 0.15097998823740955, 0.4348178492249418],
linf = [0.1872570975062362, 0.245999816865685, 0.7037939282238272])
end

@testset "taal-confirmed elixir_euler_blast_wave_shockcapturing.jl" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_blast_wave_shockcapturing.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_euler_blast_wave_shockcapturing.jl"),
l2 = [0.21530530948120738, 0.2805965425286348, 0.5591770920395336],
linf = [1.508388610723991, 1.5622010377944118, 2.035149673163788],
maxiters=30)
Expand All @@ -138,22 +138,22 @@ end
@testset "Tests for initial conditions" begin
# Linear scalar advection
@testset "taal-confirmed elixir_advection_basic.jl with initial_condition_sin" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_basic.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_basic.jl"),
l2 = [9.506162481381351e-5],
linf = [0.00017492510098227054],
maxiters = 1,
initial_condition = Trixi.initial_condition_sin)
end
@testset "taal-confirmed elixir_advection_basic.jl with initial_condition_constant" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_basic.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_basic.jl"),
l2 = [6.120436421866528e-16],
linf = [1.3322676295501878e-15],
maxiters = 1,
initial_condition = initial_condition_constant)
end
@testset "taal-confirmed elixir_advection_basic.jl with initial_condition_linear_x" begin
# TODO Taal: create separate `*_linear_x.jl` elixir to keep `basic` simple
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_basic.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_basic.jl"),
l2 = [7.602419413667044e-17],
linf = [2.220446049250313e-16],
maxiters = 1,
Expand All @@ -162,7 +162,7 @@ end
periodicity=false)
end
@testset "taal-confirmed elixir_advection_basic.jl with initial_condition_convergence_test" begin
test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_basic.jl"),
@test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_advection_basic.jl"),
l2 = [2.9989673704826656e-6],
linf = [5.841215237722963e-6],
maxiters = 1,
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.