Skip to content

Commit

Permalink
Added new comm functions
Browse files Browse the repository at this point in the history
  • Loading branch information
amartinhuertas committed Jun 19, 2022
1 parent 00cbc3c commit 3033874
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bindings/p4est_api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions src/bindings/p8est_api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3033874

Please sign in to comment.