Skip to content

Commit

Permalink
Merge pull request #14 from gridap/add_more_comm_methods
Browse files Browse the repository at this point in the history
Added new comm functions
  • Loading branch information
amartinhuertas authored Jun 19, 2022
2 parents 00cbc3c + 3033874 commit fa2d690
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 fa2d690

Please sign in to comment.