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

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

Adding compiled files

File size: 2.8 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_Cart_create 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_Cart_create\fP \- Makes a new communicator to which Cartesian topology information has been attached.
6
7.SH SYNTAX
8.ft R
9.SH C Syntax
10.nf
11#include <mpi.h>
12int MPI_Cart_create(MPI_Comm\fI comm_old\fP, int\fI ndims\fP, int\fI *dims\fP,
13        int\fI *periods\fP, int\fI reorder\fP, MPI_Comm\fI *comm_cart\fP)
14
15.SH Fortran Syntax
16.nf
17INCLUDE 'mpif.h'
18MPI_CART_CREATE(\fICOMM_OLD\fP,\fI NDIMS\fP,\fI DIMS\fP,\fI PERIODS\fP,\fI REORDER\fP,
19                \fICOMM_CART\fP,\fI IERROR\fP)
20        INTEGER \fICOMM_OLD\fP,\fI NDIMS\fP,\fI DIMS\fP(*),\fI COMM_CART\fP,\fI IERROR\fP
21        LOGICAL \fIPERIODS\fI(*),\fI REORDER\fP
22
23.SH C++ Syntax
24.nf
25#include <mpi.h>
26Cartcomm Intracomm::Create_cart(int \fIndims\fP, const int \fIdims\fP[],
27        const bool \fIperiods\fP[], bool \fIreorder\fP) const
28
29.SH INPUT PARAMETERS
30.ft R
31.TP 1i
32comm_old
33Input communicator (handle).
34.TP 1i
35ndims
36Number of dimensions of Cartesian grid (integer).
37.TP 1i
38dims
39Integer array of size ndims specifying the number of processes in each
40dimension.
41.TP 1i
42periods
43Logical array of size ndims specifying whether the grid is periodic (true)
44or not (false) in each dimension.
45.TP 1i
46reorder
47Ranking may be reordered (true) or not (false) (logical).
48
49.SH OUTPUT PARAMETERS
50.ft R
51.TP 1i
52comm_cart
53Communicator with new Cartesian topology (handle).
54.ft R
55.TP 1i
56IERROR
57Fortran only: Error status (integer).
58
59.SH DESCRIPTION
60.ft R
61MPI_Cart_create returns a handle to a new communicator to which the Cartesian topology information is attached. If reorder = false then the rank of each process in the new group is identical to its rank in the old group. Otherwise, the function may reorder the processes (possibly so as to choose a good embedding of the virtual topology onto the physical machine). If the total size of the Cartesian grid is smaller than the size of the group of comm, then some processes are returned MPI_COMM_NULL, in analogy to MPI_Comm_split. The call is erroneous if it specifies a grid that is larger than the group size.
62
63.SH ERRORS
64Almost 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.
65.sp
66Before the error value is returned, the current MPI error handler is
67called. 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. 
68
Note: See TracBrowser for help on using the repository browser.