PIO  2.5.4
Functions/Subroutines
Open a File

Open an existing netCDF file with PIO in Fortran. More...

Functions/Subroutines

integer function, public piolib_mod::pio_openfile (iosystem, file, iotype, fname, mode)
 The error return code (see Error Handling for Fortran). More...
 

Detailed Description

Open an existing netCDF file with PIO in Fortran.

Function/Subroutine Documentation

◆ pio_openfile()

integer function, public piolib_mod::pio_openfile ( 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  mode 
)

The error return code (see Error Handling for Fortran).

Open an existing file using PIO. Input parameters are read on comp task 0 and ignored elsewhere.

Parameters
iosystema defined PIO system descriptor created by a call to Initialize an IOSystem (see PIO_int)
filethe returned file descriptor
iotypeAn integer parameter which controls the iotype.
fnamethe name of the file to open
modePIO_nowrite or PIO_write.
Return values
ierr
Author
Jim Edwards