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

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

Adding compiled files

File size: 3.2 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_Type_lb 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_Type_lb\fP \- Returns the lower bound of a data type. This may differ from zero if the type was constructed using MPI_LB. Use of this routine is deprecated.
6
7.SH SYNTAX
8.ft R
9.SH C Syntax
10.nf
11#include <mpi.h>
12int MPI_Type_lb(MPI_Datatype \fIdatatype\fP, MPI_Aint\fI *displacement\fP)
13
14.SH Fortran Syntax
15.nf
16INCLUDE 'mpif.h'
17MPI_TYPE_LB(\fIDATATYPE, DISPLACEMENT, IERROR\fP)
18        INTEGER \fIDATATYPE, DISPLACEMENT, IERROR\fP
19
20
21.SH INPUT PARAMETER
22.ft R
23.TP 1i
24datatype     
25Datatype (handle).
26.sp
27.SH OUTPUT PARAMETERS
28.ft R
29.TP 1i
30displacement     
31Displacement of lower bound from origin, in bytes (integer).
32.ft R
33.TP 1i
34IERROR
35Fortran only: Error status (integer).
36
37.SH DESCRIPTION
38.ft R
39Note that use of this routine is \fIdeprecated\fP as of MPI-2. Please use MPI_Type_get_extent instead.
40.sp
41This deprecated routine is not available in C++.
42.sp
43MPI_Type_lb returns the lower bound of a data type.
44.sp
45The "pseudo-datatypes," MPI_LB and MPI_UB, can be used, respectively, to mark the lower bound (or the upper bound) of a datatype. These pseudo-datatypes occupy no space (extent (MPI_LB) = extent (MPI_UB) =0. They do not affect the size or count of a datatype, and do not affect the context of a message created with this datatype. However, they do affect the definition of the extent of a datatype and, therefore, affect the outcome of a replication of this datatype by a datatype constructor.
46.sp
47In general, if
48.sp
49.nf
50    Typemap = {(type0, disp0), ..., (type(n-1), disp(n-1)}
51.fi
52.sp
53then the lower bound of Typemap is defined to be
54.nf
55
56                  (min(j) disp(j)                          if no entry has
57    lb(Typemap) = (                                        basic type lb
58                  (min(j) {disp(j) such that type(j) = lb} otherwise
59
60.fi
61Similarly, the upper bound of Typemap is defined to be
62.nf
63
64                  (max(j) disp(j) + sizeof((type(j)) + e   if no entry has
65    ub(Typemap) = (                                        basic type ub
66                  (max(j) {disp(j) such that type(j) = ub} otherwise
67
68Then
69
70    extent(Typemap) = ub(Typemap) - lb(Typemap)
71.fi
72.sp
73If type(i) requires alignment to a byte address that is a multiple of k(i),
74then e is the least nonnegative increment needed to round extent(Typemap) to the next multiple of max(i) k(i).
75
76.SH ERRORS
77Almost 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.
78.sp
79Before the error value is returned, the current MPI error handler is
80called. 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. 
81
82.SH SEE ALSO
83.ft R
84.sp
85MPI_Type_get_extent
86.br
87
Note: See TracBrowser for help on using the repository browser.