laser.mpi.util.shuffle.test
Class UseCase5

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

public class UseCase5
extends UseCase

A simple test involving 2 procs. The data start out as:

The map is:

(0,1)->(1,0) (0,2)->(1,1) (0,3)->(1,2) (0,4)->(1,3) (0,5)->(1,4) (1,0)->(0,2) (1,1)->(0,3) (1,2)->(0,0) (1,3)->(0,5) (1,4)->(1,5) (1,5)->(0,4)

So the result is:


Field Summary
 
Fields inherited from class laser.mpi.util.shuffle.test.UseCase
error, localData, map, myRank, name, newLocalData, nProcs, shuffler
 
Constructor Summary
UseCase5()
          Constructs a new instance of this use case.
 
Method Summary
static void main(java.lang.String[] args)
          Performs a test based on this use case.
 
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
 

Constructor Detail

UseCase5

public UseCase5()
         throws mpi.MPIException
Constructs a new instance of this use case.

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. Note that nProcs must be at least 3 for this test to work. The args are ignored.

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