Skip to content

Commit

Permalink
Adding p4est_partition_given
Browse files Browse the repository at this point in the history
  • Loading branch information
amartinhuertas committed Dec 15, 2022
1 parent 9d30e5a commit b2002a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bindings/p4est_api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/bindings/p8est_api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2002a3

Please sign in to comment.