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

ENH: add UPstream::subProcs() static method

- returns a range of `int` values that can be iterated across.
  For example,

      for (const int proci : Pstream::subProcs()) { ... }

  instead of

      for
      (
          int proci = Pstream::firstSlave();
          proci <= Pstream::lastSlave();
          ++proci
      )
      {
          ...
      }
parent e18ff114
1 merge request!382Pstream ranges
Showing
with 68 additions and 214 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