程序包 mpi
类 CartParms
java.lang.Object
mpi.CartParms
Cartesian topology information associated with a communicator.
-
构造器概要
构造器限定符构造器说明protected
CartParms
(int[] dims, boolean[] periods, int[] coords) Constructs a cartesian topology information object. -
方法概要
修饰符和类型方法说明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
Returns the number of dimensions.boolean
getPeriod
(int i) Returns the periodicity (true/false) for a cartesian dimension.
-
构造器详细资料
-
CartParms
protected CartParms(int[] dims, boolean[] periods, int[] coords) Constructs a cartesian topology information object.- 参数:
dims
- number of processes for each cartesian dimension.periods
- periodicity (true/false) for each cartesian dimension.coords
- coordinates of calling process in cartesian structure.
-
-
方法详细资料
-
getDimCount
public int getDimCount()Returns the number of dimensions.- 返回:
- number of dimensions.
-
getDim
public int getDim(int i) Returns the number of processes for a cartesian dimension.- 参数:
i
- cartesian dimension.- 返回:
- number of processes for a cartesian dimension.
-
getPeriod
public boolean getPeriod(int i) Returns the periodicity (true/false) for a cartesian dimension.- 参数:
i
- cartesian dimension.- 返回:
- periodicity for a cartesian dimension.
-
getCoord
public int getCoord(int i) Returns the coordinate of calling process for a cartesian dimension.- 参数:
i
- cartesian dimension.- 返回:
- coordinate of calling process for a cartesian dimension.
-