statalign
Class MPIUtils

java.lang.Object
  extended by statalign.MPIUtils

public class MPIUtils
extends java.lang.Object


Constructor Summary
MPIUtils()
           
 
Method Summary
static boolean isMaster(int rank)
          Determines if a process with a certain rank is the master.
static void println(int rank, java.lang.String message)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MPIUtils

public MPIUtils()
Method Detail

println

public static void println(int rank,
                           java.lang.String message)

isMaster

public static boolean isMaster(int rank)
Determines if a process with a certain rank is the master. By default only processes with the rank of 0 are masters.

Parameters:
rank - the rank of the process
Returns:
whether the process is a master.