laser.mpi.util.shuffle.test
Class UseCase1
java.lang.Object
|
+--laser.mpi.util.shuffle.test.UseCase
|
+--laser.mpi.util.shuffle.test.UseCase1
- public class UseCase1
- extends UseCase
A simple test involving 3 procs. The data start out as:
- 0: 0 1 2 -,
- 1: 3,
- 2: 4 5.
Here the - represents a space that currently is not being used.
The map is: (0,0)->(2,1), (2,1)->(0,0), (1,0)->(2,0),
(2,0)->(0,3). So we should end up with:
- 0: 5 1 2 4,
- 1: 3,
- 2: 3 0.
Notice that there is still a 3 in position (1,0) because, although
the 3 was copied to position (2,0), nothing was copied to position
(1,0) to overwrite the 3.
Constructor Summary |
UseCase1()
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 |
UseCase1
public UseCase1()
throws mpi.MPIException
- Constructs a new instance of this use case.
- Throws:
mpi.MPIException
- if something goes awry with MPI.
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