Skip to content
Snippets Groups Projects
Commit b277b913 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: add guards for partially populated communicators

- these are primarily when encountering sparse (eg, inter-host)
  communicators. Additional UPstream convenience methods:

  is_rank(comm)
    => True if process corresponds to a rank in the communicators.
       Can be a master rank or a sub-rank.

  is_parallel(comm)
    => True if parallel algorithm or exchange is used on the process.
       same as

           (parRun() && (nProcs(comm) > 1) && is_rank(comm))
parent 74db18a9
Branches
Tags
No related merge requests found
Showing
with 257 additions and 152 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment