Skip to content
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "T8code"
uuid = "d0cc0030-9a40-4274-8435-baadcfd54fa1"
authors = ["Johannes Markert <johannes.markert@dlr.de>"]
version = "0.9.2"
version = "0.9.3"

[deps]
CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
Expand All @@ -22,4 +22,4 @@ Preferences = "1.2.1"
Reexport = "0.2, 1.0"
UUIDs = "1"
julia = "1.10"
t8code_jll = "=4.0.7"
t8code_jll = "=4.0.8"
6 changes: 3 additions & 3 deletions dev/Artifacts.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[[t8code]]
arch = "x86_64"
git-tree-sha1 = "22c9c74032be408f80b485c3a7aee80dfe69b777"
git-tree-sha1 = "db9d00b1eaecef9135b00cad5d6d498a16998b17"
lazy = true
libc = "glibc"
mpi = "mpich"
os = "linux"

[[t8code.download]]
sha256 = "111c1ed11d8cced1b9a620630d270201b2a0a0a08d4e9fff14205bd758311b98"
url = "https://github.com/JuliaBinaryWrappers/t8code_jll.jl/releases/download/t8code-v4.0.7+0/t8code.v4.0.7.x86_64-linux-gnu-mpi+mpich.tar.gz"
sha256 = "cc76e7345a1f30673093970be94713d5fe43fb76e6acb01ea0237b5d148d0caf"
url = "https://github.com/JuliaBinaryWrappers/t8code_jll.jl/releases/download/t8code-v4.0.8+0/t8code.v4.0.8.x86_64-linux-gnu-mpi+mpich.tar.gz"
4 changes: 1 addition & 3 deletions dev/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
[deps]
Clang = "40e3b903-d033-50b4-a0cc-940c62c95e31"
Glob = "c27321d9-0574-5035-807b-f59d2c89b15c"

[compat]
Clang = "0.18"
Glob = "1"
Clang = "0.19"
12 changes: 5 additions & 7 deletions dev/generator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Pkg.instantiate()
using Artifacts
cp(joinpath(artifact"t8code", "include"), "t8code_include"; force = true)

using Glob
using Clang.Generators

cd(@__DIR__)
Expand All @@ -19,12 +18,11 @@ options = load_options(joinpath(@__DIR__, "generator.toml"))
args = get_default_args() # Note you must call this function firstly and then append your own flags
push!(args, "-I$include_dir")

headers = [
glob("t8_*.h", include_dir) ;
glob("**/t8_*.h", include_dir) ;
glob("**/**/t8_*.h", include_dir) ;
# glob("**/**/**/t8_*.h", include_dir)
]
filter_out = (x -> !startswith(basename(x), "t8_") ||
!endswith(basename(x), ".h") ||
basename(x) == "t8_dtri_to_dtet.h") # this header contains redefinitions which seem harmful

headers = detect_headers(include_dir, args, Dict(), filter_out)

# create context
ctx = create_context(headers, args, options)
Expand Down
1 change: 1 addition & 0 deletions dev/prologue.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ const INT32_MIN = typemin(Cint)
const INT32_MAX = typemax(Cint)
const INT64_MIN = typemin(Clonglong)
const INT64_MAX = typemax(Clonglong)
const P4EST_QMAXLEVEL = 29
3 changes: 2 additions & 1 deletion examples/t8_step1_coarsemesh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ function t8_step1_build_tetcube_coarse_mesh(comm)
# do_partition - If non-zero the cmesh will be partitioned among the processes. If 0 each process has a copy of the whole cmesh.
# periodic - If non-zero the cube will have periodic boundaries. That is, i.e. the left face is connected to the right face.

cmesh = t8_cmesh_new_hypercube(T8_ECLASS_TET, comm, 0, 0, 0)
cmesh = t8_cmesh_new()
t8_cmesh_new_hypercube(Ref(cmesh), T8_ECLASS_TET, comm, 0, 0, 0)

return cmesh
end
Expand Down
3 changes: 2 additions & 1 deletion examples/t8_step2_uniform_forest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ using T8code.Libt8: SC_LP_PRODUCTION
# \return The coarse mesh.
function t8_step2_build_prismcube_coarse_mesh(comm)
# Build a coarse mesh of 2 prism trees that form a cube.
cmesh = t8_cmesh_new_hypercube(T8_ECLASS_PRISM, comm, 0, 0, 0)
cmesh = t8_cmesh_new()
t8_cmesh_new_hypercube(Ref(cmesh), T8_ECLASS_PRISM, comm, 0, 0, 0)

t8_global_productionf(" [step2] Constructed coarse mesh with 2 prism trees.\n")

Expand Down
3 changes: 2 additions & 1 deletion examples/t8_step3_adapt_forest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ t8_global_productionf(" [step3] \n")
## Setup. Build cmesh and uniform forest.

# Build a cube cmesh with tet, hex, and prism trees.
cmesh = t8_cmesh_new_hypercube_hybrid(comm, 0, 0)
cmesh = t8_cmesh_new()
t8_cmesh_new_hypercube_hybrid(cmesh, comm, 0)
t8_global_productionf(" [step3] Created coarse mesh.\n")
forest = t8_forest_new_uniform(cmesh, t8_scheme_new_default(), level, 0, comm)

Expand Down
3 changes: 2 additions & 1 deletion examples/t8_step4_partition_balance_ghost.jl
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ t8_global_productionf(" [step4] \n")
t8_global_productionf(" [step4] Creating an adapted forest as in step3.\n")
t8_global_productionf(" [step4] \n")
# Build a cube cmesh with tet, hex, and prism trees.
cmesh = t8_cmesh_new_hypercube_hybrid(comm, 0, 0)
cmesh = t8_cmesh_new()
t8_cmesh_new_hypercube_hybrid(cmesh, comm, 0)
t8_global_productionf(" [step4] Created coarse mesh.\n")
forest = t8_forest_new_uniform(cmesh, t8_scheme_new_default(), level, 0, comm)

Expand Down
3 changes: 2 additions & 1 deletion examples/t8_step5_element_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ struct t8_step5_data_per_element_t
end

function t8_step5_build_forest(comm, level)
cmesh = t8_cmesh_new_hypercube_hybrid(comm, 0, 0)
cmesh = t8_cmesh_new()
t8_cmesh_new_hypercube_hybrid(cmesh, comm, 0)
scheme = t8_scheme_new_default()

adapt_data = t8_step3_adapt_data_t((0.5, 0.5, 1.0), # Midpoints of the sphere.
Expand Down
3 changes: 2 additions & 1 deletion examples/t8_step6_stencil.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ end
# properties of the first ("root") forest and deallocates it. The final
# adapted and committed forest is returned back to the calling scope.
function t8_step6_build_forest(comm, dim, level)
cmesh = t8_cmesh_new_periodic(comm, dim)
cmesh = t8_cmesh_new()
t8_cmesh_new_periodic(cmesh, comm, dim)

scheme = t8_scheme_new_default()

Expand Down
Loading
Loading