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

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

Adding compiled files

File size: 3.0 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_Type_create_resized 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_Type_create_resized\fP \- Returns a new data type with new extent and upper and lower bounds.
6
7.SH SYNTAX
8.ft R
9.SH C Syntax
10.nf
11#include <mpi.h>
12int MPI_Type_create_resized(MPI_Datatype \fIoldtype\fP, MPI_Aint\fI lb\fP,
13        MPI_Aint \fIextent\fP, MPI_Datatype *\fInewtype\fP)
14
15.SH Fortran Syntax (see FORTRAN 77 NOTES)
16.nf
17INCLUDE 'mpif.h'
18MPI_TYPE_CREATE_RESIZED(\fIOLDTYPE, LB, EXTENT, NEWTYPE, IERROR\fP)
19        INTEGER \fIOLDTYPE, NEWTYPE, IERROR\fP
20        INTEGER(KIND=MPI_ADDRESS_KIND)  \fILB, EXTENT\fP
21
22.SH C++ Syntax
23.nf
24#include <mpi.h>
25MPI::Datatype MPI::Datatype::Create_resized(const MPI::Aint \fIlb\fP,
26        const MPI::Aint \fIextent\fP) const
27
28.SH INPUT PARAMETERS
29.ft R
30.TP 1i
31oldtype     
32Input data type (handle).
33.TP 1i
34lb
35New lower bound of data type (integer).
36.TP 1i
37extent
38New extent of data type (integer).
39
40.SH OUTPUT PARAMETERS
41.ft R
42.TP 1i
43newtype
44Output data type (handle).
45.TP 1i
46IERROR
47Fortran only: Error status (integer).
48
49.SH DESCRIPTION
50.ft R
51MPI_Type_create_resized returns in \fInewtype\fP a handle to a new data type that is identical to \fIoldtype\fP, except that the lower bound of this new data type is set to be \fIlb\fP, and its upper bound is set to be \fIlb\fP + \fIextent\fP. Any previous \fIlb\fP and \fIub\fP markers are erased, and a new pair of lower bound and upper bound markers are put in the positions indicated by the \fIlb\fP and \fIextent\fP arguments. This affects the behavior of the data type when used in communication operations, with \fIcount\fP > 1, and when used in the construction of new derived data types.
52
53.SH FORTRAN 77 NOTES
54.ft R
55The MPI standard prescribes portable Fortran syntax for
56the \fILB\fP and \fIEXTENT\fP arguments only for Fortran 90. FORTRAN 77
57users may use the non-portable syntax
58.sp
59.nf
60     INTEGER*MPI_ADDRESS_KIND \fILB\fP
61or
62     INTEGER*MPI_ADDRESS_KIND \fIEXTENT\fP
63.fi
64.sp
65where MPI_ADDRESS_KIND is a constant defined in mpif.h
66and gives the length of the declared integer in bytes.
67
68.SH NOTE
69.ft R
70Use of MPI_Type_create_resized is strongly recommended over the old MPI-1 functions MPI_Type_extent and MPI_Type_lb.
71
72.SH ERRORS
73Almost 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.
74.sp
75Before the error value is returned, the current MPI error handler is
76called. 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. 
77
78.SH SEE ALSO
79
80MPI_Type_get_extent
81
Note: See TracBrowser for help on using the repository browser.