deleting pnetcdf files

Rob Ross rross at mcs.anl.gov
Fri May 7 11:10:48 CDT 2004


Hi Joachim,

You're right; we should do this.  I'm adding it to the (relatively long 
now) list of things that we need to get done.

Regards,

Rob

Joachim Worringen wrote:
> Hi *,
> 
> it occured to me that the pnetcdf API, like the original NetCDF API, doesn't 
> provide a function to delete a file. While this is no problem for NetCDF, as 
> it is based on a sequential file system which always has this as a native 
> functionality, things are different for pnetcdf which is based on MPI-IO. A 
> file which is created via MPI-IO is not necessarily visible in any native 
> file system. 
> 
> Thus, to be safe, a file created via pnetcdf would have to be delete via 
> MPI_File_delete(). However, it is somewhat cumbersome to use two different 
> APIs to access a file. Therefore, I propose some sort of ncmpi_delete(char 
> *fname) function. An MPI_Info object might be passed as well, although I can 
> not think of any application for this when deleting a file!?
> 
>  Joachim
> 




More information about the parallel-netcdf mailing list