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> |
---|
12 | int 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 |
---|
17 | INCLUDE 'mpif.h' |
---|
18 | MPI_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> |
---|
25 | void 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 |
---|
31 | datatype |
---|
32 | Data type (handle). |
---|
33 | .sp |
---|
34 | .SH OUTPUT PARAMETERS |
---|
35 | .ft R |
---|
36 | .TP 1i |
---|
37 | lb |
---|
38 | Lower bound of data type (integer). |
---|
39 | .TP 1i |
---|
40 | extent |
---|
41 | Data type extent (integer). |
---|
42 | .ft R |
---|
43 | .TP 1i |
---|
44 | IERROR |
---|
45 | Fortran only: Error status (integer). |
---|
46 | |
---|
47 | .SH DESCRIPTION |
---|
48 | .ft R |
---|
49 | MPI_Type_get_extent returns the lower bound and the extent of \fIdatatype\fP. |
---|
50 | |
---|
51 | .SH NOTE |
---|
52 | .ft R |
---|
53 | Use 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 |
---|
57 | The MPI standard prescribes portable Fortran syntax for |
---|
58 | the \fILB\fP and \fIEXTENT\fP arguments only for Fortran 90. FORTRAN 77 |
---|
59 | users may use the non-portable syntax |
---|
60 | .sp |
---|
61 | .nf |
---|
62 | INTEGER*MPI_ADDRESS_KIND \fILB\fP |
---|
63 | or |
---|
64 | INTEGER*MPI_ADDRESS_KIND \fIEXTENT\fP |
---|
65 | .fi |
---|
66 | .sp |
---|
67 | where MPI_ADDRESS_KIND is a constant defined in mpif.h |
---|
68 | and gives the length of the declared integer in bytes. |
---|
69 | |
---|
70 | .SH ERRORS |
---|
71 | 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. |
---|
72 | .sp |
---|
73 | Before the error value is returned, the current MPI error handler is |
---|
74 | 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. |
---|
75 | |
---|
76 | |
---|