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

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

Adding compiled files

File size: 2.7 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_Cart_sub 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_Cart_sub \fP \- Partitions a communicator into subgroups, which form lower-dimensional Cartesian subgrids.
6
7.SH SYNTAX
8.ft R
9.SH C Syntax
10.nf
11#include <mpi.h>
12int MPI_Cart_sub(MPI_Comm \fIcomm\fP, int\fI *remain_dims\fP, MPI_Comm\fI *comm_new\fP)
13
14.SH Fortran Syntax
15.nf
16INCLUDE 'mpif.h'
17MPI_CART_SUB(\fICOMM, REMAIN_DIMS, COMM_NEW, IERROR\fP)
18        INTEGER \fICOMM, COMM_NEW, IERROR\fP
19        LOGICAL \fIREMAIN_DIMS\fP(*)
20
21.SH C++ Syntax
22.nf
23#include <mpi.h>
24Cartcomm Cartcomm::Sub(const bool \fIremain_dims\fP[]) const
25
26.SH INPUT PARAMETERS
27.ft R
28.TP 1i
29comm
30Communicator with Cartesian structure (handle).
31.TP 1i
32remain_dims
33The ith entry of remain_dims specifies whether the ith dimension is kept in the subgrid (true) or is dropped (false) (logical vector).
34
35.SH OUTPUT PARAMETERS
36.ft R
37.TP 1i
38comm_new
39Communicator containing the subgrid that includes the calling process (handle).
40.ft R
41.TP 1i
42IERROR
43Fortran only: Error status (integer).
44
45.SH DESCRIPTION
46.ft R
47If a Cartesian topology has been created with MPI_Cart_create, the function  MPI_Cart_sub can be used to partition the communicator group into subgroups that form lower-dimensional Cartesian subgrids, and to build for each subgroup a communicator with the associated subgrid Cartesian topology. (This function is closely related to MPI_Comm_split.)
48.sp
49\fBExample:\fP Assume that  MPI_Cart_create( \&..., comm) has defined a (2 x 3 x 4)   grid. Let  remain_dims = (true, false, true). Then a call to
50.sp
51.nf
52    MPI_Cart_sub(comm, remain_dims, comm_new)
53.fi
54.sp
55will create three communicators, each with eight processes in a 2 x 4 Cartesian topology. If remain_dims = (false, false, true) then the call to MPI_Cart_sub(comm, remain_dims, comm_new) will create six nonoverlapping communicators, each with four processes, in a one-dimensional Cartesian topology.
56
57.SH ERRORS
58Almost 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.
59.sp
60Before the error value is returned, the current MPI error handler is
61called. 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. 
62
63.SH SEE ALSO
64.ft R
65.sp
66.nf
67MPI_Cart_create
68MPI_Comm_split
69
Note: See TracBrowser for help on using the repository browser.