laser.mpi.util.shuffle.test
Class UseCase4

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

public class UseCase4
extends UseCase

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

Here the - represents a space that currently is not being used. The map is:

(2,0)->(2,2) (2,2)->(0,0) (0,0)->(1,0) (0,2)->(0,1) (1,1)->(2,1) (2,1)->(1,1)

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
UseCase4()
          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

UseCase4

public UseCase4()
         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