• 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
decomposedBlockData.C 28 KB