public final class CartParms
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
CartParms(int[] dims,
boolean[] periods,
int[] coords)
Constructs a cartesian topology information object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCoord(int i)
Returns the coordinate of calling process for a cartesian dimension.
|
int |
getDim(int i)
Returns the number of processes for a cartesian dimension.
|
int |
getDimCount()
Returns the number of dimensions.
|
boolean |
getPeriod(int i)
Returns the periodicity (true/false) for a cartesian dimension.
|
protected CartParms(int[] dims,
boolean[] periods,
int[] coords)
dims - number of processes for each cartesian dimension.periods - periodicity (true/false) for each cartesian dimension.coords - coordinates of calling process in cartesian structure.public int getDimCount()
public int getDim(int i)
i - cartesian dimension.public boolean getPeriod(int i)
i - cartesian dimension.public int getCoord(int i)
i - cartesian dimension.