diff --git a/src/bindings/p4est_api.jl b/src/bindings/p4est_api.jl index a30371b..c09396e 100644 --- a/src/bindings/p4est_api.jl +++ b/src/bindings/p4est_api.jl @@ -46,6 +46,11 @@ function p4est_partition(p4est, allow_for_coarsening, weight_fn) ccall((:p4est_partition, p4est_lib), Cvoid, (Ptr{p4est_t}, Cint, p4est_weight_t), p4est, allow_for_coarsening, weight_fn) end +function p4est_partition_given(p4est, num_quadrants_in_proc) + ccall((:p4est_partition_given, p4est_lib), Cvoid, (Ptr{p4est_t}, Ptr{p4est_locidx_t}), p4est, num_quadrants_in_proc) +end + + function p4est_checksum(p4est) ccall((:p4est_checksum, p4est_lib), UInt32, (Ptr{p4est_t},), p4est) end diff --git a/src/bindings/p8est_api.jl b/src/bindings/p8est_api.jl index c430f09..81694d5 100644 --- a/src/bindings/p8est_api.jl +++ b/src/bindings/p8est_api.jl @@ -46,6 +46,10 @@ function p8est_partition(p8est, allow_for_coarsening, weight_fn) ccall((:p8est_partition, p4est_lib), Cvoid, (Ptr{p8est_t}, Cint, p8est_weight_t), p8est, allow_for_coarsening, weight_fn) end +function p8est_partition_given(p8est, num_quadrants_in_proc) + ccall((:p8est_partition_given, p4est_lib), Cvoid, (Ptr{p8est_t}, Ptr{p4est_locidx_t}), p8est, num_quadrants_in_proc) +end + function p8est_checksum(p8est) ccall((:p8est_checksum, p4est_lib), UInt32, (Ptr{p8est_t},), p8est) end