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

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

Adding compiled files

File size: 2.3 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_Type_get_extent 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_Type_get_extent\fP \- Returns the lower bound and extent of a data type.
6
7.SH SYNTAX
8.ft R
9.SH C Syntax
10.nf
11#include <mpi.h>
12int MPI_Type_get_extent(MPI_Datatype \fIdatatype\fP, MPI_Aint\fI *lb\fP,
13        MPI_Aint *\fIextent\fP)
14
15.SH Fortran Syntax (see FORTRAN 77 NOTES)
16.nf
17INCLUDE 'mpif.h'
18MPI_TYPE_GET_EXTENT(\fIDATATYPE, LB, EXTENT, IERROR\fP)
19        INTEGER \fIDATATYPE, IERROR\fP
20        INTEGER(KIND=MPI_ADDRESS_KIND) \fILB, EXTENT\fP
21
22.SH C++ Syntax
23.nf
24#include <mpi.h>
25void MPI::Datatype::Get_extent(MPI::Aint& \fIlb\fP, MPI::Aint& \fIextent\fP)
26        const
27
28.SH INPUT PARAMETER
29.ft R
30.TP 1i
31datatype     
32Data type (handle).
33.sp
34.SH OUTPUT PARAMETERS
35.ft R
36.TP 1i
37lb
38Lower bound of data type (integer).
39.TP 1i
40extent     
41Data type extent (integer).
42.ft R
43.TP 1i
44IERROR
45Fortran only: Error status (integer).
46
47.SH DESCRIPTION
48.ft R
49MPI_Type_get_extent returns the lower bound and the extent of \fIdatatype\fP.
50
51.SH NOTE
52.ft R
53Use of MPI_Type_get_extent is strongly recommended over the old MPI-1 functions MPI_Type_extent and MPI_Type_lb.
54
55.SH FORTRAN 77 NOTES
56.ft R
57The MPI standard prescribes portable Fortran syntax for
58the \fILB\fP and \fIEXTENT\fP arguments only for Fortran 90. FORTRAN 77
59users may use the non-portable syntax
60.sp
61.nf
62     INTEGER*MPI_ADDRESS_KIND \fILB\fP
63or
64     INTEGER*MPI_ADDRESS_KIND \fIEXTENT\fP
65.fi
66.sp
67where MPI_ADDRESS_KIND is a constant defined in mpif.h
68and gives the length of the declared integer in bytes.
69
70.SH ERRORS
71Almost 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.
72.sp
73Before the error value is returned, the current MPI error handler is
74called. 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. 
75
76
Note: See TracBrowser for help on using the repository browser.