source: proiecte/hpl/openmpi_compiled/share/man/man3/MPI_Cart_coords.3 @ 97

Last change on this file since 97 was 97, checked in by (none), 14 years ago

Adding compiled files

File size: 2.0 KB
Line 
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>
12int 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
17INCLUDE 'mpif.h'
18MPI_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>
24void 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
30comm
31Communicator with Cartesian structure (handle).
32.TP 1i
33rank
34Rank of a process within group of comm (integer).
35.TP 1i
36maxdims
37 Length of vector coord in the calling program (integer).
38
39.SH OUTPUT PARAMETERS
40.ft R
41.TP 1i
42coords
43Integer 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
46IERROR
47Fortran only: Error status (integer).
48
49.SH DESCRIPTION
50.ft R
51The inverse mapping, rank-to-coordinates translation is provided by MPI_Cart_coords.
52
53.SH ERRORS
54Almost 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
56Before the error value is returned, the current MPI error handler is
57called. 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
Note: See TracBrowser for help on using the repository browser.