PIO  1.7.1
 All Classes Files Functions Groups Pages
Functions/Subroutines
PIO_createfile

Functions/Subroutines

integer function piolib_mod::createfile (iosystem, file, iotype, fname, amode_in)
 create a file using pio More...
 

Detailed Description

Function/Subroutine Documentation

integer function piolib_mod::createfile ( type (iosystem_desc_t), intent(inout), target  iosystem,
type (file_desc_t), intent(out)  file,
integer, intent(in)  iotype,
character(len=*), intent(in)  fname,
integer, intent(in), optional  amode_in 
)

create a file using pio

Input parameters are read on comp task 0 and ignored elsewhere

Parameters
iosystem: a defined pio system descriptor created by a call to PIO_init (see PIO_types)
file: the returned file descriptor
iotype:

An integer parameter which controls the iotype.

  • PIO_iotype_pbinary : Use MPI-IO to read/write C like binary file
  • PIO_iotype_direct_pbinary: Use MPI-IO to read/write direct access binary files
  • PIO_iotype_binary : serial read/write of binary files using 'base_node'
  • PIO_iotype_pnetcdf : parallel read/write of pNetCDF files (netcdf3)
  • PIO_iotype_netcdf : serial read/write of NetCDF files using 'base_node' (netcdf3)
  • PIO_iotype_netcdf4c : parallel read/serial write of NetCDF4 (HDF5) files with data compression
  • PIO_iotype_netcdf4p : parallel read/write of NETCDF4 (HDF5) files
Parameters
fname: the name of the file to open
amode_in: the creation mode flag. the following flags are available: PIO_clobber, PIO_noclobber.
Return values
ierr\copybrieferror_return