Skip to content

Commit

Permalink
new syntax for p4est with Clang (#65)
Browse files Browse the repository at this point in the history
* new syntax for p4est with Clang

* set version to v0.3.10
  • Loading branch information
JoshuaLampert authored Jan 26, 2023
1 parent e5290f8 commit 16b3f89
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Trixi2Vtk"
uuid = "bc1476a1-1ca6-4cc3-950b-c312b255ff95"
authors = ["Michael Schlottke-Lakemper <[email protected]>", "Hendrik Ranocha <[email protected]>"]
version = "0.3.9"
version = "0.3.10"

[deps]
Glob = "c27321d9-0574-5035-807b-f59d2c89b15c"
Expand All @@ -18,6 +18,6 @@ HDF5 = "0.14, 0.15, 0.16"
ProgressMeter = "1.3"
StaticArrays = "0.12, 1.0"
TimerOutputs = "0.5"
Trixi = "0.4, 0.5"
Trixi = "0.5"
WriteVTK = "1.7"
julia = "1.7"
2 changes: 1 addition & 1 deletion src/convert.jl
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ function add_celldata!(vtk_celldata, mesh::P4estMesh, verbose)
cell_counter = 1
# Iterate through the p4est trees and each of their quadrants.
# Assigns the tree index values. Also, grab and assign the level value.
for tree in Trixi.unsafe_wrap_sc(Trixi.P4est.p4est_tree_t, mesh.p4est.trees)
for tree in Trixi.unsafe_wrap_sc(Trixi.P4est.p4est_tree_t, unsafe_load(mesh.p4est).trees)
for quadrant in Trixi.unsafe_wrap_sc(Trixi.P4est.p4est_quadrant_t, tree.quadrants)
tree_ids[cell_counter] = tree_counter
cell_levels[cell_counter] = quadrant.level
Expand Down
2 changes: 1 addition & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Trixi = "a7f1ee26-1774-49b1-8366-f1abc58fbfcb"
Documenter = "0.27"
OrdinaryDiffEq = "6"
ReadVTK = "0.1"
Trixi = "0.4"
Trixi = "0.5"
2 changes: 1 addition & 1 deletion test/test_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ end
compare_point_data(out_file, ref_file)
end

@timed_testset "attempt VTI format on unsupportd mesh type" begin
@timed_testset "attempt VTI format on unsupported mesh type" begin
# Purposely request a bad configuration and check that an error message gets thrown
# OBS! Only needs tested once across all mesh types and dimensions
@test_throws ArgumentError trixi2vtk(joinpath(outdir, "solution_000001.h5"), output_directory=outdir, format=:vti)
Expand Down

2 comments on commit 16b3f89

@ranocha
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/76402

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.10 -m "<description of version>" 16b3f89c41b4db1377af7a183dc4604c0f883076
git push origin v0.3.10

Please sign in to comment.