Skip to content
  • Mark OLESEN's avatar
    ENH: add UPstream::subProcs() static method · 5dc5ea92
    Mark OLESEN authored
    - 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
          )
          {
              ...
          }
    5dc5ea92