 
  
   
    2012 Unidata NetCDF Workshop  > Parallel I/O with NetCDF
 
2012 Unidata NetCDF Workshop  > Parallel I/O with NetCDF  
 
35.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. 
  call check(nf90_create(FILE_NAME, IOR(nf90_netcdf4, nf90_mpiposix), ncid, &
       comm = MPI_COMM_WORLD, info = MPI_INFO_NULL, cache_size = CACHE_SIZE, &
       cache_nelems = CACHE_NELEMS, cache_preemption = CACHE_PREEMPTION))
 
 
 
  
   
    2012 Unidata NetCDF Workshop  > Parallel I/O with NetCDF
  
2012 Unidata NetCDF Workshop  > Parallel I/O with NetCDF