laser.mpi.util.shuffle.test
Class UseCase0

java.lang.Object
  |
  +--laser.mpi.util.shuffle.test.UseCase
        |
        +--laser.mpi.util.shuffle.test.UseCase0

public class UseCase0
extends UseCase

In this use case, localData has length d on each proc. The d*nProcs data elements are the distinct integers 0,1,...,d*nProcs-1 arranged in the dictionary order. Then the data are permuted by sending each element to the corresponding position in the next proc, where we cycle around the procs.


Field Summary
(package private)  int d
          The length of the localData array on each proc.
(package private)  int nData
          The total amount of data, i.e., d*nProcs.
 
Fields inherited from class laser.mpi.util.shuffle.test.UseCase
error, localData, map, myRank, name, newLocalData, nProcs, shuffler
 
Constructor Summary
UseCase0(int d)
          Constructs a new instance of this use case with the given d.
 
Method Summary
static void main(java.lang.String[] args)
          Performs a test based on this use case for d=5.
 
Methods inherited from class laser.mpi.util.shuffle.test.UseCase
test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

d

int d
The length of the localData array on each proc.


nData

int nData
The total amount of data, i.e., d*nProcs.

Constructor Detail

UseCase0

public UseCase0(int d)
         throws mpi.MPIException
Constructs a new instance of this use case with the given d.

Throws:
mpi.MPIException - if something goes awry with MPI
Method Detail

main

public static void main(java.lang.String[] args)
                 throws mpi.MPIException
Performs a test based on this use case for d=5. The args are ignored.

Parameters:
args - the command line arguments (ignored)
Throws:
mpi.MPIException - if something goes awry with MPI