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

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

Adding compiled files

File size: 2.6 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_File_write 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_File_write\fP \- Writes a file starting at the location specified by the individual file pointer (blocking, noncollective).
6
7.SH SYNTAX
8.ft R
9.nf
10C Syntax
11    #include <mpi.h>
12    int MPI_File_write(MPI_File \fIfh\fP, void \fI*buf\fP,
13        int \fIcount\fP, MPI_Datatype \fIdatatype\fP,
14        MPI_Status \fI*status\fP)
15
16Fortran Syntax
17    INCLUDE 'mpif.h'
18    MPI_FILE_WRITE(\fIFH\fP, \fI BUF\fP, \fICOUNT\fP,
19              \fI DATATYPE\fP, \fISTATUS\fP, \fI IERROR\fP)
20         <type> \fIBUF\fP(*)
21         INTEGER \fIFH, COUNT, DATATYPE, STATUS(MPI_STATUS_SIZE),
22                IERROR\fP
23
24.SH C++ Syntax
25.nf
26#include <mpi.h>
27void MPI::File::Write(const void* \fIbuf\fP, int \fIcount\fP,
28        const MPI::Datatype& \fIdatatype\fP, MPI::Status& \fIstatus\fP)
29
30void MPI::File::Write(const void* \fIbuf\fP, int \fIcount\fP,
31        const MPI::Datatype& \fIdatatype\fP)
32
33.SH INPUT/OUTPUT PARAMETER
34.ft R
35.TP 1i
36fh
37File handle (handle).
38
39.SH INPUT PARAMETERS
40.ft R
41.TP 1i
42buf
43Initial address of buffer (choice).
44.TP 1i
45count
46Number of elements in buffer (integer).
47.TP 1i
48datatype
49Data type of each buffer element (handle).
50
51.SH OUTPUT PARAMETERS
52.ft R
53.TP 1i
54status
55Status object (status).
56.TP 1i
57IERROR
58Fortran only: Error status (integer).
59
60.SH DESCRIPTION
61.ft R
62MPI_File_write attempts to write into the file associated with
63.I fh
64(at the current individual file pointer position maintained by the system) a total number of
65.I count
66data items having
67.I datatype
68type from the user's buffer
69.I buf.
70The data is written into those parts of the
71file specified by the current view. MPI_File_write stores the
72number of
73.I datatype
74elements actually written in
75.I status.
76All other fields of
77.I status
78are undefined.
79.sp
80It is erroneous to call this function if MPI_MODE_SEQUENTIAL mode was specified when the file was opened.
81
82.SH ERRORS
83Almost 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.
84.sp
85Before the error value is returned, the current MPI error handler is
86called. For MPI I/O function errors, the default error handler is set to MPI_ERRORS_RETURN. The error handler may be changed with MPI_File_set_errhandler; the predefined error handler MPI_ERRORS_ARE_FATAL may be used to make I/O errors fatal. Note that MPI does not guarantee that an MPI program can continue past an error. 
87
Note: See TracBrowser for help on using the repository browser.