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

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

Adding compiled files

File size: 2.5 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_Info_get 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_Info_get\fP \- Retrieves the value associated with a key in an info object.
6
7.SH SYNTAX
8.ft R
9.SH C Syntax
10.nf
11#include <mpi.h>
12int MPI_Info_get(MPI_Info \fIinfo\fP, char \fI*key\fP, int \fIvaluelen\fP, char \fI*value\fP, int *\fIflag\fP)
13
14.SH Fortran Syntax
15.nf
16INCLUDE 'mpif.h'
17MPI_INFO_GET(\fIINFO, KEY, VALUELEN, VALUE, FLAG, IERROR\fP)
18        INTEGER \fIINFO, VALUELEN, IERROR\fP
19        CHARACTER*(*) \fIKEY, VALUE\fP
20        LOGICAL \fIFLAG\fP
21
22.SH C++ Syntax
23.nf
24#include <mpi.h>
25bool MPI::Info::Get(const char* \fIkey\fP, int \fIvaluelen\fP,
26        char* \fIvalue\fP) const
27
28.SH INPUT PARAMETERS
29.ft R
30.TP 1i
31info
32Info object (handle).
33.ft R
34.TP 1i
35key
36Key (string).
37.ft R
38.TP 1i
39valuelen
40Length of value arg (integer).
41
42.SH OUTPUT PARAMETER
43.ft R
44.TP 1i
45value
46Value (string).
47.ft R
48.TP 1i
49flag
50Returns true if key defined, false if not (boolean).
51.ft R
52.TP 1i
53IERROR
54Fortran only: Error status (integer).
55
56.SH DESCRIPTION
57.ft R
58MPI_Info_get retrieves the value associated with \fIkey\fP in a previous call to MPI_Info_set. If such a key exists, it sets \fIflag\fP to true and returns the value in \fIvalue\fP; otherwise it sets \fIflag\fP to false and leaves \fIvalue\fP unchanged. \fIvaluelen\fP is the number of characters available in value. If it is less than the actual size of the value, the returned value is truncated. In C, \fIvaluelen\fP should be one less than the amount of allocated space to allow for the null terminator.
59.sp
60If \fIkey\fP is larger than MPI_MAX_INFO_KEY, the call is erroneous.
61
62.SH ERRORS
63Almost 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.
64.sp
65Before the error value is returned, the current MPI error handler is
66called. 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. 
67
68.SH SEE ALSO
69.ft r
70MPI_Info_create
71.br
72MPI_Info_delete
73.br
74MPI_Info_dup
75.br
76MPI_Info_free
77.br
78MPI_Info_get_valuelen
79.br
80MPI_Info_get_nkeys
81.br
82MPI_Info_get_nthkey
83.br
84MPI_Info_set
85.br
86
Note: See TracBrowser for help on using the repository browser.