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

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

Adding compiled files

File size: 2.2 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\"Copyright (c) 1996 Thinking Machines
3.TH MPI_Type_dup 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_Type_dup\fP \- Duplicates a data type with associated key values.
6
7.SH SYNTAX
8.ft R
9.SH C Syntax
10.nf
11#include <mpi.h>
12int MPI_Type_dup(MPI_Datatype \fItype\fP, MPI_Datatype *\fInewtype\fP)
13
14.SH Fortran Syntax
15.nf
16INCLUDE 'mpif.h'
17MPI_TYPE_DUP(\fITYPE, NEWTYPE, IERROR\fP)
18        INTEGER \fITYPE, NEWTYPE, IERROR \fP
19
20.SH C++ Syntax
21.nf
22#include <mpi.h>
23MPI::Datatype MPI::Datatype::Dup() const
24
25.SH INPUT PARAMETER
26.ft R
27.TP 1i
28type
29Data type (handle).
30
31.SH OUTPUT PARAMETERS
32.ft R
33.TP 1i
34newtype
35Copy of \fItype\fP (handle).
36.TP 1i
37IERROR
38Fortran only: Error status (integer).
39
40.SH DESCRIPTION
41.ft R
42MPI_Type_dup is a type constructor that duplicates the existing type with associated key values. For each key value, the respective copy callback function determines the attribute value associated with this key in the new communicator. One particular action that a copy callback may take is to delete the attribute from the new data type. Returns in \fInewtype\fP a new data type with exactly the same properties as \fItype\fP, as well as any copied cached information. The new data type has identical upper bound and lower bound and yields the same net result when fully decoded with the functions described in Section 8.6 of the MPI-2 standard. \fInewtype\fP has the same committed state as the old \fItype\fP.
43
44.SH ERRORS
45Almost 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.
46.sp
47Before the error value is returned, the current MPI error handler is
48called. 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. 
49
50.SH SEE ALSO
51.ft R
52.sp
53MPI_Type_create_keyval
54.br
55
Note: See TracBrowser for help on using the repository browser.