BasicTools.Helpers.MPIInterface module

BasicTools.Helpers.MPIInterface.CheckIntegrity(GUI=False)[source]
class BasicTools.Helpers.MPIInterface.MPIInterface[source]

Bases: object

Class to test if the mpi inteface is avilable This class work even if the module mpi4py is not avilable

classmethod IsParallel()[source]

return True if the main program was lauched in a mpi enviroment (mpirun)

classmethod Rank()[source]

return the rank of the current process (0 if not in a mpi enviroment)

classmethod Size()[source]

return the size of the mpi enviroment (0 if not in a mpi enviroment)