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

ENH: add UPstream::parRun(const bool)

- slightly neater code when disabling/restoring parallel state

  New
      const bool oldParRun = Pstream::parRun(false);
      ...
      Pstream::parRun(oldParRun);

  Old
      const bool oldParRun = Pstream::parRun();
      Pstream::parRun() = false;
      ...
      Pstream::parRun() = oldParRun;
parent ea0de58b
Branches
Tags
No related merge requests found
Showing
with 56 additions and 59 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