|
Jpetra Development
|


Public Member Functions | |
| SerialComm () | |
| void | barrier () |
| int | broadcast (int value, int root) |
| double | broadcast (double value, int root) |
| Serializable | broadcast (java.io.Serializable value, int root) |
| double[] | gatherAll (double myDouble) |
| double[] | gatherAll (double[] myElements) |
| java.io.Serializable[] | gatherAll (java.io.Serializable[] myElements) |
| int[] | gatherAll (int[] myElements) |
| int[] | gatherAll (int myInt) |
| boolean | isSerial () |
| int | getNumVnodes () |
| int | getVnodeId () |
| double[] | maxAll (double[] partialMaxs) |
| int[] | maxAll (int[] partialMaxs) |
| int[] | minAll (int[] partialMins) |
| Serializable | minAll (Serializable partialMins) |
| double[] | scanSums (double[] myElements) |
| int[] | scanSums (int[] myElements) |
| void | setMyVnodeID (int newVnodeID) |
| int[] | sumAll (int[] partialSums) |
| double[] | sumAll (double[] partialSums) |
| int[][] | gatherAll2dArray (int[] myElements) |
| void | send (Serializable[] exportObject, int destinationVnode) |
| void | send (int[] exportObject, int destinationVnode) |
| Serializable | receive (int senderId) |
| int[] | scatterIntArray (int[] in) |
| int[] | scatter2dArray (int[][] in) |
| int[][] | gather (int[] in) |
| void | send (Serializable exportObject, int destinationVnode) |
| void | send (double[] exportObject, int destinationVnode) |
| Distributor | createDistributor () |
| Directory | createDirectory (VectorSpace vectorSpace) |
| Serializable | maxAll (Serializable partialMaxs) |
| double[] | minAll (double[] partialMins) |
SerialComm is a simple class that implements the Comm interface for serial communication. Most methods either simply return the parameters passed to them or return a hard coded value.
| Jpetra::SerialComm::SerialComm | ( | ) | [inline] |
Creates a new instance of SerialComm.
| void Jpetra::SerialComm::barrier | ( | ) | [inline] |
No-op for a serial communicator.
Implements Jpetra::Comm.
| int Jpetra::SerialComm::broadcast | ( | int | value, |
| int | root | ||
| ) | [inline] |
Does a broadcast of value to the node itself.
| value | The int to broadcast to all nodes. |
| root | The root vnode to gather the ints onto. This is not used for serial communication and is ignored. |
value that was passed in Implements Jpetra::Comm.
| Serializable Jpetra::SerialComm::broadcast | ( | java.io.Serializable | value, |
| int | root | ||
| ) | [inline] |
Does a broadcast of value to the node itself.
| value | The Serializable object to broadcast to all nodes. |
| root | The root vnode to gather the Serializable objects onto. This is not used for serial communication and is ignored. |
value that was passed in | double Jpetra::SerialComm::broadcast | ( | double | value, |
| int | root | ||
| ) | [inline] |
Does a broadcast of value to the node itself.
| value | The double to broadcast to all nodes. |
| root | The root vnode to gather the doubles onto. This is not used for serial communication and is ignored. |
value that was passed in Implements Jpetra::Comm.
| int [] Jpetra::SerialComm::gatherAll | ( | int[] | myElements | ) | [inline] |
Simply returns myElements.
| myElements | the int array to gather |
myElements Implements Jpetra::Comm.
| int [] Jpetra::SerialComm::gatherAll | ( | int | myInt | ) | [inline] |
Simply returns an array of size one of myInt.
| myInt | the int to gather |
myInt Implements Jpetra::Comm.
| double [] Jpetra::SerialComm::gatherAll | ( | double | myDouble | ) | [inline] |
Simply returns an array of size one of myDouble.
| myDouble | the double to gather |
myDouble Implements Jpetra::Comm.
| double [] Jpetra::SerialComm::gatherAll | ( | double[] | myElements | ) | [inline] |
Simply returns myElements.
| myElements | the double array to gather |
myElements Implements Jpetra::Comm.
| java.io.Serializable [] Jpetra::SerialComm::gatherAll | ( | java.io.Serializable[] | myElements | ) | [inline] |
Simply returns myElements.
| myElements | the serialized object array to gather |
myElements | int Jpetra::SerialComm::getNumVnodes | ( | ) | [inline] |
Since this is a serial implementation of comm the value returned will always be 1.
Implements Jpetra::Comm.
| int Jpetra::SerialComm::getVnodeId | ( | ) | [inline] |
Since this is a serial implementation of Comm it always returns 0.
Implements Jpetra::Comm.
| boolean Jpetra::SerialComm::isSerial | ( | ) | [inline] |
Accessor to determine if this is in serial mode. Always returns true.
Implements Jpetra::Comm.
| double [] Jpetra::SerialComm::maxAll | ( | double[] | partialMaxs | ) | [inline] |
Simply returns partialMaxs.
| partialMaxs | the partial maximums |
partialMaxs Implements Jpetra::Comm.
| int [] Jpetra::SerialComm::maxAll | ( | int[] | partialMaxs | ) | [inline] |
Simply returns partialMaxs.
| partialMaxs | the partial maximums |
partialMaxs Implements Jpetra::Comm.
| Serializable Jpetra::SerialComm::minAll | ( | Serializable | partialMins | ) | [inline] |
Simply returns partialMins.
| partialMins | the partial minimums |
partialMins Implements Jpetra::Comm.
| double [] Jpetra::SerialComm::minAll | ( | double[] | partialMins | ) | [inline] |
Takes a list of values form all vnodes in the communicator, computes the min, and returns the min to all vnodes.
| partialMins | in on entry; the list of values, usually computed locally, to be summed across all vnodes |
Implements Jpetra::Comm.
| int [] Jpetra::SerialComm::minAll | ( | int[] | partialMins | ) | [inline] |
Simply returns partialMins.
| partialMins | the partial minimums |
partialMins Implements Jpetra::Comm.
| Serializable Jpetra::SerialComm::receive | ( | int | senderId | ) | [inline] |
No-op for a serial communicator.
Implements Jpetra::Comm.
| double [] Jpetra::SerialComm::scanSums | ( | double[] | myElements | ) | [inline] |
Simply returns myElements.
| myElements | the values to be summmed |
myElements Implements Jpetra::Comm.
| int [] Jpetra::SerialComm::scanSums | ( | int[] | myElements | ) | [inline] |
Simply returns myElements.
| myElements | the values to be summmed |
myElements Implements Jpetra::Comm.
| void Jpetra::SerialComm::send | ( | double[] | exportObject, |
| int | destinationVnode | ||
| ) | [inline] |
No-op for a serial communicator.
Implements Jpetra::Comm.
| void Jpetra::SerialComm::send | ( | int[] | exportObject, |
| int | destinationVnode | ||
| ) | [inline] |
No-op for a serial communicator.
Implements Jpetra::Comm.
| void Jpetra::SerialComm::send | ( | Serializable | exportObject, |
| int | destinationVnode | ||
| ) | [inline] |
No-op for a serial communicator.
Implements Jpetra::Comm.
| void Jpetra::SerialComm::setMyVnodeID | ( | int | newVnodeID | ) | [inline] |
No-op for a serial communicator.
| newVnodeID | new vnode ID for this</code vnode |
Implements Jpetra::Comm.
| int [] Jpetra::SerialComm::sumAll | ( | int[] | partialSums | ) | [inline] |
Simply returns partialSums.
| partialSums | the partial sums |
partialSums Implements Jpetra::Comm.
| double [] Jpetra::SerialComm::sumAll | ( | double[] | partialSums | ) | [inline] |
Simply returns partialSums.
| partialSums | the partial sums |
partialSums Implements Jpetra::Comm.
1.7.4