1 | .\"Copyright 2006-2008 Sun Microsystems, Inc. |
---|
2 | .\" Copyright (c) 1996 Thinking Machines Corporation |
---|
3 | .TH MPI_Cart_coords 3 "Dec 08, 2009" "1.4" "Open MPI" |
---|
4 | .SH NAME |
---|
5 | \fBMPI_Cart_coords\fP \- Determines process coords in Cartesian topology given rank in group. |
---|
6 | |
---|
7 | .SH SYNTAX |
---|
8 | .ft R |
---|
9 | .SH C Syntax |
---|
10 | .nf |
---|
11 | #include <mpi.h> |
---|
12 | int MPI_Cart_coords(MPI_Comm \fIcomm\fP, int\fI rank\fP, int\fI maxdims\fP, |
---|
13 | int\fI *coords\fP) |
---|
14 | |
---|
15 | .SH Fortran Syntax |
---|
16 | .nf |
---|
17 | INCLUDE 'mpif.h' |
---|
18 | MPI_CART_COORDS(\fICOMM\fP,\fI RANK\fP,\fI MAXDIMS\fP,\fI COORDS\fP, \fIIERROR\fP) |
---|
19 | INTEGER \fICOMM\fP,\fI RANK\fP,\fI MAXDIMS\fP,\fI COORDS(\fI*\fP)\fP,\fI IERROR |
---|
20 | |
---|
21 | .SH C++ Syntax |
---|
22 | .nf |
---|
23 | #include <mpi.h> |
---|
24 | void Cartcomm::Get_coords(int \fIrank\fP, int \fImaxdims\fP, |
---|
25 | int \fIcoords\fP[]) const |
---|
26 | |
---|
27 | .SH INPUT PARAMETERS |
---|
28 | .ft R |
---|
29 | .TP 1i |
---|
30 | comm |
---|
31 | Communicator with Cartesian structure (handle). |
---|
32 | .TP 1i |
---|
33 | rank |
---|
34 | Rank of a process within group of comm (integer). |
---|
35 | .TP 1i |
---|
36 | maxdims |
---|
37 | Length of vector coord in the calling program (integer). |
---|
38 | |
---|
39 | .SH OUTPUT PARAMETERS |
---|
40 | .ft R |
---|
41 | .TP 1i |
---|
42 | coords |
---|
43 | Integer array (of size ndims,which was defined by MPI_Cart_create call) containing the Cartesian coordinates of specified process (integer). |
---|
44 | .ft R |
---|
45 | .TP 1i |
---|
46 | IERROR |
---|
47 | Fortran only: Error status (integer). |
---|
48 | |
---|
49 | .SH DESCRIPTION |
---|
50 | .ft R |
---|
51 | The inverse mapping, rank-to-coordinates translation is provided by MPI_Cart_coords. |
---|
52 | |
---|
53 | .SH ERRORS |
---|
54 | Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ functions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism will be used to throw an MPI:Exception object. |
---|
55 | .sp |
---|
56 | Before the error value is returned, the current MPI error handler is |
---|
57 | called. By default, this error handler aborts the MPI job, except for I/O function errors. The error handler may be changed with MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN may be used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error. |
---|
58 | |
---|