Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,44 +59,44 @@ jobs:
t8code_version:
- '4.0.0'
t8code_snapshot:
- '26.07'
- '26.08'
include:
- julia-version: '1.10'
julia-arch: 'default'
os: macos-latest
mpi-provider: JLL_MPI
t8code_version: '4.0.0'
t8code_snapshot: '26.07'
t8code_snapshot: '26.08'
- julia-version: '1'
julia-arch: 'default'
os: macos-latest
mpi-provider: JLL_MPI
t8code_version: '4.0.0'
t8code_snapshot: '26.07'
t8code_snapshot: '26.08'
- julia-version: 'nightly'
julia-arch: 'default'
os: macos-latest
mpi-provider: JLL_MPI
t8code_version: '4.0.0'
t8code_snapshot: '26.07'
t8code_snapshot: '26.08'
- julia-version: '1.10'
julia-arch: 'x64'
os: ubuntu-latest
mpi-provider: SYSTEM_MPI
t8code_version: '4.0.0'
t8code_snapshot: '26.07'
t8code_snapshot: '26.08'
- julia-version: '1'
julia-arch: 'x64'
os: ubuntu-latest
mpi-provider: SYSTEM_MPI
t8code_version: '4.0.0'
t8code_snapshot: '26.07'
t8code_snapshot: '26.08'
- julia-version: 'nightly'
julia-arch: 'x64'
os: ubuntu-latest
mpi-provider: SYSTEM_MPI
t8code_version: '4.0.0'
t8code_snapshot: '26.07'
t8code_snapshot: '26.08'
steps:
- name: Checkout repository
uses: actions/checkout@v7
Expand Down
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.3"
version = "0.10.0-DEV"

[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"
13 changes: 6 additions & 7 deletions dev/generator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,17 @@ 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")

# Include all t8_*.h headers, except:
# `t8_dtri_to_dtet.h`: redefines the triangle macros, types and functions to their
# tetrahedron counterparts, so that the triangle implementation can be reused for
# tetrahedra. Parsing it would turn the `t8_dtri_*` functions into mere aliases of
# `t8_dtet_*`, even though both are separate symbols in `libt8`.
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
basename(x) == "t8_dtri_to_dtet.h")

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

# `t8_dtri_to_dtet.h` redefines the triangle macros, types and functions to their
# tetrahedron counterparts, so that the triangle implementation can be reused for
# tetrahedra. Parsing it would turn the `t8_dtri_*` functions into mere aliases of
# `t8_dtet_*`, even though both are separate symbols in `libt8`.
filter!(h -> basename(h) != "t8_dtri_to_dtet.h", headers)

# create context
ctx = create_context(headers, args, options)

Expand Down
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