Skip to content

Commit

Permalink
Adapt test structure
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibolm committed Apr 23, 2024
1 parent 9c963b7 commit 7a39d91
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/test_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ end

@testset "Subcell limiting coefficients" begin
isdir(outdir) && rm(outdir, recursive=true)
run_trixi(joinpath(examples_dir(), "tree_2d_dgsem", "elixir_euler_shockcapturing_subcell.jl"), maxiters=10)
run_trixi(joinpath(examples_dir(), "tree_2d_dgsem", "elixir_euler_sedov_blast_wave_sc_subcell.jl"), maxiters=10)

@timed_testset "do not reinterpolate" begin
# Create and test output without reinterpolation
Expand All @@ -411,8 +411,8 @@ end
cp(out_file, joinpath(artifacts_dir, testname * "-" * outfilename), force=true)

# remote file path is actually a URL so it always has the same path structure
remote_filename = "2d/treemesh/dgsem_blast_shockcapturing_subcell_no_interp_10.vtu"
ref_file = get_test_reference_file("dgsem_blast_shockcapturing_subcell_no_interp_10.vtu", remote_filename)
remote_filename = "2d/treemesh/dgsem_sedov_subcell_no_interp_10.vtu"
ref_file = get_test_reference_file("dgsem_sedov_subcell_no_interp_10.vtu", remote_filename)
compare_point_data(out_file, ref_file)
end

Expand All @@ -427,9 +427,9 @@ end
cp(out_file, joinpath(artifacts_dir, testname * "-" * outfilename), force=true)

# remote file path is actually a URL so it always has the same path structure
remote_filename = "2d/treemesh/dgsem_blast_shockcapturing_subcell_interp_10.vtu"
ref_file = get_test_reference_file("dgsem_blast_shockcapturing_subcell_interp_10.vtu", remote_filename)
compare_point_data(out_file, ref_file)
remote_filename = "2d/treemesh/dgsem_sedov_subcell_interp_10.vtu"
ref_file = get_test_reference_file("dgsem_sedov_subcell_interp_10.vtu", remote_filename)
compare_cell_data(out_file, ref_file)
end
end
end
Expand Down

0 comments on commit 7a39d91

Please sign in to comment.