Skip to content

Commit

Permalink
Uploaded t8code checkpoint reference files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Markert committed Jan 6, 2025
1 parent 4ead419 commit 0e0049b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 5 additions & 6 deletions test/test_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ end
end
end


if !Sys.iswindows() && get(ENV, "CI", nothing) == "true"
# OBS! Only `TreeMesh` results are tested on Windows runners due to memory limits.
# All remaining mesh types are tested on Ubuntu and Mac
Expand Down Expand Up @@ -410,7 +409,7 @@ 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/t8codemesh/dgsem_rotor_amr_mesh_05.vtu"
remote_filename = "2d/p4estmesh/dgsem_rotor_amr_mesh_05.vtu"
ref_file = get_test_reference_file("dgsem_rotor_amr_mesh_05.vtu", remote_filename)
compare_cell_data(out_file, ref_file)
end
Expand All @@ -426,7 +425,7 @@ 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/t8codemesh/dgsem_rotor_amr_celldata_05.vtu"
remote_filename = "2d/p4estmesh/dgsem_rotor_amr_celldata_05.vtu"
ref_file = get_test_reference_file("dgsem_rotor_amr_celldata_05.vtu", remote_filename)
compare_cell_data(out_file, ref_file)
end
Expand All @@ -442,7 +441,7 @@ 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/t8codemesh/dgsem_rotor_amr_reinterp_05.vtu"
remote_filename = "2d/p4estmesh/dgsem_rotor_amr_reinterp_05.vtu"
ref_file = get_test_reference_file("dgsem_rotor_amr_reinterp_05.vtu", remote_filename)
compare_point_data(out_file, ref_file)
end
Expand All @@ -458,7 +457,7 @@ 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/t8codemesh/dgsem_rotor_amr_no_reinterp_05.vtu"
remote_filename = "2d/p4estmesh/dgsem_rotor_amr_no_reinterp_05.vtu"
ref_file = get_test_reference_file("dgsem_rotor_amr_no_reinterp_05.vtu", remote_filename)
compare_point_data(out_file, ref_file)
end
Expand All @@ -475,7 +474,7 @@ 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/t8codemesh/dgsem_rotor_amr_no_reinterp_uniform_05.vtu"
remote_filename = "2d/p4estmesh/dgsem_rotor_amr_no_reinterp_uniform_05.vtu"
ref_file = get_test_reference_file("dgsem_rotor_amr_no_reinterp_uniform_05.vtu", remote_filename)
compare_point_data(out_file, ref_file)
end
Expand Down
3 changes: 2 additions & 1 deletion test/test_trixi2vtk.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function get_reference_file(filename, remotename; head="main", output_directory=
* head
* "/reference_files/"
* remotename)

download(url, filepath)
end

Expand All @@ -53,7 +54,7 @@ end
# Note: The purpose of using a specific commit hash (instead of `main`) is to be able to tie a given
# version of Trixi2Vtk to a specific version of the test file repository. This way, also tests
# for older Trixi2Vtk releases should continue to work.
const TEST_REFERENCE_COMMIT = "1ba4ac00a41c856d2c0aa7b51b81358d267625d6"
const TEST_REFERENCE_COMMIT = "96e52e260149cd2f1539535dfcd23826b5e5d1e7"

# Local folder to store downloaded reference files. If you change this, also adapt `../.gitignore`!
const TEST_REFERENCE_DIR = "reference_files"
Expand Down

0 comments on commit 0e0049b

Please sign in to comment.