| Modifier | Constructor and Description |
|---|---|
protected |
CartComm(long handle) |
protected |
CartComm(long[] commRequest) |
| Modifier and Type | Method and Description |
|---|---|
CartComm |
clone()
Duplicates this communicator.
|
static void |
createDims(int nnodes,
int[] dims)
Select a balanced distribution of processes per coordinate direction.
|
CartComm |
dup()
Duplicates this communicator.
|
int[] |
getCoords(int rank)
Translate process rank to logical process coordinates.
|
int |
getRank(int[] coords)
Translate logical process coordinates to process rank.
|
CartParms |
getTopo()
Returns cartesian topology information.
|
CartComm |
iDup()
Duplicates this communicator.
|
int |
map(int[] dims,
boolean[] periods)
Compute an optimal placement.
|
ShiftParms |
shift(int direction,
int disp)
Compute source and destination ranks for "shift" communication.
|
CartComm |
sub(boolean[] remainDims)
Partition cartesian communicator into subgroups of lower dimension.
|
accept, accept, closePort, connect, connect, create, createCart, createDistGraph, createDistGraph, createDistGraphAdjacent, createDistGraphAdjacent, createGraph, exScan, exScan, iExScan, iExScan, iScan, iScan, lookupName, lookupName, openPort, openPort, publishName, publishName, scan, scan, spawn, spawnMultiple, split, unpublishName, unpublishNameabort, allGather, allGather, allGatherv, allGatherv, allReduce, allReduce, allToAll, allToAllv, barrier, bcast, bSend, bSendInit, compare, createIntercomm, createKeyval, deleteAttr, disconnect, dup, free, freeKeyval, gather, gather, gatherv, gatherv, gatherv, getAttr, getErrhandler, getGroup, getInfo, getName, getRank, getRequest, getSize, getTopology, iAllGather, iAllGather, iAllGatherv, iAllGatherv, iAllReduce, iAllReduce, iAllToAll, iAllToAllv, iBarrier, iBcast, ibSend, iDup, iGather, iGather, iGatherv, iGatherv, iGatherv, iNeighborAllGather, iNeighborAllGatherv, iNeighborAllToAll, iNeighborAllToAllv, iProbe, iRecv, iReduce, iReduce, iReduceScatter, iReduceScatter, iReduceScatterBlock, iReduceScatterBlock, irSend, iScatter, iScatter, iScatterv, iScatterv, iScatterv, iSend, isInter, isNull, isSend, neighborAllGather, neighborAllGatherv, neighborAllToAll, neighborAllToAllv, pack, packSize, probe, recv, recvInit, reduce, reduce, reduceLocal, reduceScatter, reduceScatter, reduceScatterBlock, reduceScatterBlock, rSend, rSendInit, scatter, scatter, scatterv, scatterv, scatterv, send, sendInit, sendRecv, sendRecvReplace, setAttr, setErrhandler, setInfo, setName, setType, sSend, sSendInit, unpackprotected CartComm(long handle)
throws MPIException
MPIExceptionprotected CartComm(long[] commRequest)
public CartComm clone()
Java binding of MPI_COMM_DUP.
It is recommended to use dup() instead of clone()
because the last can't throw an MPIException.
public CartComm dup() throws MPIException
Java binding of MPI_COMM_DUP.
dup in class IntracommMPIExceptionpublic CartComm iDup() throws MPIException
Java binding of MPI_COMM_IDUP.
The new communicator can't be used before the operation completes.
The request object must be obtained calling Comm.getRequest().
iDup in class IntracommMPIExceptionpublic CartParms getTopo() throws MPIException
Java binding of the MPI operations MPI_CARTDIM_GET and
MPI_CART_GET.
The number of dimensions can be obtained from the size of (eg)
dims field of the returned object.
MPIExceptionpublic int getRank(int[] coords)
throws MPIException
Java binding of the MPI operation MPI_CART_RANK.
coords - Cartesian coordinates of a processMPIExceptionpublic int[] getCoords(int rank)
throws MPIException
Java binding of the MPI operation MPI_CART_COORDS.
rank - rank of a processMPIExceptionpublic ShiftParms shift(int direction, int disp) throws MPIException
Java binding of the MPI operation MPI_CART_SHIFT.
direction - coordinate dimension of shiftdisp - displacementMPIExceptionpublic CartComm sub(boolean[] remainDims) throws MPIException
Java binding of the MPI operation MPI_CART_SUB.
remainDims - by dimension, true if dimension is to be kept,
false otherwiseMPIExceptionpublic int map(int[] dims,
boolean[] periods)
throws MPIException
Java binding of the MPI operation MPI_CART_MAP.
The number of dimensions is taken to be size of the dims argument.
dims - the number of processes in each dimensionperiods - true if grid is periodic,
false if not, in each dimensionMPIExceptionpublic static void createDims(int nnodes,
int[] dims)
throws MPIException
Java binding of the MPI operation MPI_DIMS_CREATE.
nnodes - number of nodes in a griddims - array specifying the number of nodes in each dimensionMPIException