NAME
MMPPIIFFiilleeddeelleettee - Deletes a file.
SSYYNNTTAAXX C Syntax#include
int MPIFiledelete(char *filename, MPIInfo info) Fortran Syntax INCLUDE 'mpif.h'MPIFILEDELETE(FILENAME, INFO, IERROR)
CHARACTER*(*) FILENAME
INTEGER INFO, IERROR
CC++++ SSyynnttaaxx#include
static void MPI::File::Delete(const char* filename, const MPI::Info& info) IINNPPUUTT PPAARRAAMMEETTEERRSS filename Name of file to delete (string). info Info object (handle). OOUUTTPPUUTT PPAARRAAMMEETTEERRIERROR Fortran only: Error status (integer).
DESCRIPTION
MPIFiledelete deletes the file identified by the file name filename, provided it is not currently open by any process. It is an error to delete the file with MPIFiledelete if some process has it open, but MPIFiledelete does not check this. If the file does not exist, MPIFiledelete returns an error in the class MPIERRNOSUCHFILE. EERRRROORRSS Almost all MPI routines return an error value; C routines as the valueof the function and Fortran routines in the last argument. C++ func-
tions do not return errors. If the default error handler is set toMPI::ERRORSTHROWEXCEPTIONS, then on error the C++ exception mechanism
will be used to throw an MPI:Exception object. Before the error value is returned, the current MPI error handler is called. For MPI I/O function errors, the default error handler is setto MPIERRORSRETURN. The error handler may be changed with
MPIFileseterrhandler; the predefined error handlerMPIERRORSAREFATAL may be used to make I/O errors fatal. Note that
MPI does not guarantee that an MPI program can continue past an error. Open MPI 1.2 September 2006 MPIFiledelete(3OpenMPI)