diff --git a/src/bindings/p4est_api.jl b/src/bindings/p4est_api.jl index efadb87..a30371b 100644 --- a/src/bindings/p4est_api.jl +++ b/src/bindings/p4est_api.jl @@ -852,3 +852,10 @@ function p4est_comm_count_pertree(p4est, pertree) (Ptr{p4est_t}, Ptr{p4est_gloidx_t}), p4est, pertree) end + +function p4est_comm_find_owner(p4est, which_tree, q, guess) + ccall((:p4est_comm_find_owner, p4est_lib), + Cint, + (Ptr{p4est_t}, p4est_locidx_t, Ptr{p4est_quadrant_t}, Cint), + p4est, which_tree, q, guess) +end diff --git a/src/bindings/p8est_api.jl b/src/bindings/p8est_api.jl index c909a81..c430f09 100644 --- a/src/bindings/p8est_api.jl +++ b/src/bindings/p8est_api.jl @@ -905,3 +905,10 @@ function p8est_comm_count_pertree(p4est, pertree) (Ptr{p8est_t}, Ptr{p4est_gloidx_t}), p4est, pertree) end + +function p8est_comm_find_owner(p4est, which_tree, q, guess) + ccall((:p8est_comm_find_owner, p4est_lib), + Cint, + (Ptr{p8est_t}, p4est_locidx_t, Ptr{p8est_quadrant_t}, Cint), + p4est, which_tree, q, guess) +end