2004-03-07 01:40:26 +03:00
|
|
|
/*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "mca/topo/base/base.h"
|
2004-04-17 00:54:48 +04:00
|
|
|
#include "communicator/communicator.h"
|
|
|
|
#include "mca/topo/topo.h"
|
2004-03-07 01:40:26 +03:00
|
|
|
|
2004-03-08 09:48:24 +03:00
|
|
|
/*
|
|
|
|
* function - retrieves Cartesian topology information associated with a
|
|
|
|
* communicator
|
|
|
|
*
|
|
|
|
* @param comm communicator with cartesian structure (handle)
|
|
|
|
* @param ndims number of dimensions of the cartesian structure (integer)
|
|
|
|
*
|
|
|
|
* @retval MPI_SUCCESS
|
|
|
|
* @retval MPI_ERR_COMM
|
|
|
|
*/
|
2004-07-21 02:32:45 +04:00
|
|
|
int mca_topo_base_cartdim_get (MPI_Comm comm,
|
2004-03-08 09:48:24 +03:00
|
|
|
int *ndims){
|
|
|
|
|
2004-07-21 02:32:45 +04:00
|
|
|
*ndims = comm->c_topo_comm->mtc_ndims_or_nnodes;
|
2004-03-08 09:48:24 +03:00
|
|
|
return MPI_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
|