[netcdfgroup] NC4 question

Hi, there,

I tried to open a NetCDF3 file with NetCDF4 (parallel-enabled) code (as below),
and get the error message:

Problem to open: <vdras_input.nc>.
Error status: NetCDF: Parallel operation on file opened for non-parallel access
Stop in file: <input_vdras_nc.F90>, line:   58

Anyone knows what is wrong here?

Thanks,

Wei

-----

! Open the file.

   status = nf90_open(trim(input_flnm), NF90_NOWRITE, ncid, &
                      comm = MPI_COMM_WORLD, &
                      info = MPI_INFO_NULL)




   if(status /= nf90_noerr) then
      write(unit=0, fmt='(3a)') "Problem to open: <", trim(input_flnm), ">."
      write(unit=0, fmt='(2a)') "Error status: ", trim(nf90_strerror(status))
      write(unit=0, fmt='(3a, i4)') &
           "Stop in file: <", "input_vdras_nc.F90", ">, line: ", 58
      stop
   end if


huangwei@xxxxxxxx
VETS/CISL
National Center for Atmospheric Research
P.O. Box 3000 (1850 Table Mesa Dr.)
Boulder, CO 80307-3000 USA
(303) 497-8924





  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: