|
|
|||
|
||||
This function is a variant of nc_create, nc_create_par allows users to open a file on a MPI/IO or MPI/Posix parallel file system.
The parallel parameters are not written to the data file, they are only used for so long as the file remains open after an nc_create_par.
This function creates a new netCDF dataset, returning a netCDF ID that can subsequently be used to refer to the netCDF dataset in other netCDF function calls. The new netCDF dataset opened for write access and placed in define mode, ready for you to add dimensions, variables, and attributes.
This function is only available for netCDF-4 files. The creation mode flag must include NC_NETCDF4.
When a netCDF-4 file is created for parallel access, collective operations are the default. To use independent access on a variable, See NF_VAR_PAR_ACCESS.
INTEGER FUNCTION NF_CREATE_PAR(CHARACTER*(*) PATH, INTEGER CMODE,
INTEGER MPI_COMM, INTEGER MPI_INFO,
INTEGER ncid)
PATHCMODESetting NF_NETCDF4 causes netCDF to create a netCDF-4/HDF5 format file. Oring NF_CLASSIC_MODEL with NF_NETCDF4 causes the netCDF library to create a netCDF-4/HDF5 data file, with the netCDF classic model enforced - none of the new features of the netCDF-4 data model may be usedin such a file, for example groups and user-defined types.
Only netCDF-4/HDF5 files may be used with parallel I/O.
MPI_COMMMPI_INFOncidNF_CREATE returns the value NF_NOERR if no errors occurred. Possible causes of errors include:
| Contact Us Site Map Search Terms and Conditions Privacy Policy Participation Policy | ||||||
|
||||||