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

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

Adding compiled files

File size: 2.8 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_File_set_size 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_File_set_size\fP \- Resizes a file (collective).
6
7.SH SYNTAX
8.ft R
9.nf
10C Syntax
11    #include <mpi.h>
12    int MPI_File_set_size(MPI_File \fIfh\fP, MPI_Offset \fIsize\fP)
13
14Fortran Syntax (see FORTRAN 77 NOTES)
15    INCLUDE 'mpif.h'
16    MPI_FILE_SET_SIZE(\fIFH\fP,\fI SIZE\fP, \fI IERROR\fP)
17                 INTEGER \fIFH, IERROR\fP
18                 INTEGER(KIND=MPI_OFFSET_KIND) \fISIZE\fP
19
20.SH C++ Syntax
21.nf
22#include <mpi.h>
23void MPI::File::Set_size(MPI::Offset \fIsize\fP)
24
25.SH INPUT PARAMETERS
26.ft R
27.TP 1i
28fh   
29File handle (handle).
30.TP 1i
31size
32Size to truncate or expand file (integer).
33
34.SH OUTPUT PARAMETER
35.ft R
36.TP 1i
37IERROR
38Fortran only: Error status (integer).
39
40.SH DESCRIPTION
41.ft R
42MPI_File_set_size resizes the file associated with the file handle
43.I fh,
44truncating UNIX files as necessary. MPI_File_set_size is collective; all
45processes in the group must pass identical values for size.
46.sp
47When using MPI_File_set_size on a UNIX file, if \fIsize\fP is larger than the current file size, the file size becomes \fIsize\fP. If \fIsize\fP is smaller than the current file size, the file is truncated at the position defined by \fIsize\fP (from the beginning of the file and measured in bytes). Regions of the file which have been previously written are unaffected.
48.sp
49MPI_File_set_size does not affect the individual file pointers or the
50shared file pointer.
51.sp
52Note that the actual amount of storage space cannot be allocated by MPI_File_set_size. Use MPI_File_preallocate to accomplish this.
53.sp
54It is erroneous to call this function if MPI_MODE_SEQUENTIAL mode was specified when the file was opened.
55
56.SH FORTRAN 77 NOTES
57.ft R
58The MPI standard prescribes portable Fortran syntax for
59the \fISIZE\fP argument only for Fortran 90.  FORTRAN 77
60users may use the non-portable syntax
61.sp
62.nf
63     INTEGER*MPI_OFFSET_KIND \fISIZE\fP
64.fi
65.sp
66where MPI_OFFSET_KIND is a constant defined in mpif.h
67and gives the length of the declared integer in bytes.
68
69.SH ERRORS
70Almost 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.
71.sp
72Before the error value is returned, the current MPI error handler is
73called. 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. 
74
75
Note: See TracBrowser for help on using the repository browser.