Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Apr 3, 2024
1 parent e1e11f7 commit 4fb1b1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Algebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ function num_parts(comm::MPI.Comm)
end
nparts
end
@inline num_parts(comm::MPIArray) = num_parts(comm.comm)
@inline num_parts(comm::DebugArray) = length(comm.items)
@inline num_parts(comm::MPIVoidVector) = num_parts(comm.comm)

function get_part_id(comm::MPI.Comm)
if comm != MPI.COMM_NULL
Expand All @@ -155,6 +158,8 @@ function get_part_id(comm::MPI.Comm)
end
id
end
@inline get_part_id(comm::MPIArray) = get_part_id(comm.comm)
@inline get_part_id(comm::MPIVoidVector) = get_part_id(comm.comm)

"""
i_am_in(comm::MPIArray)
Expand Down

0 comments on commit 4fb1b1f

Please sign in to comment.