MPI_action

MPI_action

sorts.simulation.MPI_action(action, iterable=False, root=0)[source]

Simulation step MPI post step action decorator.

Parameters
  • action (str) – Mode of operations on node-data communication, available options are “gather”, “gather-clear”, “bcast” and “barrier”.

  • iterable (bool) – Indicates if the “gather”, “gather-clear” or “bcast” should consider an iterable (that has been parallelized with MPI).

  • root (int) – The target MPI process for the “gather”, “gather-clear” and for the source process for “bcast” if iterable=False.