Skip to content

Commit

Permalink
Update src/meshes/t8code_mesh.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Doehring <[email protected]>
  • Loading branch information
benegee and DanielDoehring authored Jan 15, 2024
1 parent deb02bc commit 7ba7b9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/meshes/t8code_mesh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,15 @@ function T8codeMesh(trees_per_dimension; polydeg,
periodicity = Tuple(periodicity)
end

do_partition = 0
if NDIMS == 2
conn = T8code.Libt8.p4est_connectivity_new_brick(trees_per_dimension...,
periodicity...)
do_partition = 0
cmesh = t8_cmesh_new_from_p4est(conn, mpi_comm(), do_partition)
T8code.Libt8.p4est_connectivity_destroy(conn)
elseif NDIMS == 3
conn = T8code.Libt8.p8est_connectivity_new_brick(trees_per_dimension...,
periodicity...)
do_partition = 0
cmesh = t8_cmesh_new_from_p8est(conn, mpi_comm(), do_partition)
T8code.Libt8.p8est_connectivity_destroy(conn)
end
Expand Down

0 comments on commit 7ba7b9e

Please sign in to comment.