2009 Unidata NetCDF Workshop for Developers and Data Providers > Parallel I/O with NetCDF
21.10 Using NetCDF Parallel I/O in Fortran 90
Using netCDF-4 parallel I/O in Fortran 90 is easy.
- Simply provide the optional parameters comm and info for
nf90_create or nf90_open.
- This is tested in nf_test/f90tst_parallel.f90 and
nf_test/f90tst_parallel2.f90.
! Create the netCDF file.
mode_flag = IOR(nf90_netcdf4, nf90_classic_model)
call handle_err(nf90_create(FILE_NAME, mode_flag, ncid, comm = MPI_COMM_WORLD, &
info = MPI_INFO_NULL))
2009 Unidata NetCDF Workshop for Developers and Data Providers > Parallel I/O with NetCDF