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

ENH: add UPstream::allProcs() method

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

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

  instead of

      for (label proci = 0; proci < Pstream::nProcs(); ++proci) { ... }
parent f8a8728f
Showing
with 67 additions and 64 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