Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: "Not a netCDF Id" error

wtembe@xxxxxxxx a écrit :

Hello List,

I am using a program that uses netCDF libraries. The netcdf installation went well. When I run the program in a serial mode to read the netcdf file, it runs w/o any problems. When I use a parallel environment (MPI), it bails out with error: “Not a netCDF id”. I read something about file opening/shutting using SHUT and M3EXIT like calls. Is that what I need to use? Any other fixes for this problem? Here are the details of my environment:

Netcdf-3.6.1 compiled using intel ifort 8.0 and icc 8.0 on gnu linux Linux cholla-hn1 2.4.2 with i386

Thanks!

Regards

As far as I know, the netCDF library is not thread/multiprocess safe.
You cannot write a single file from multiple threads or processes or
the metadata (and the data) can be corrupted.

For reading only, it should work, but in MPI environment each occurence
of the program must open the file (there is no sharing of data). Maybe
your program opens the file only in the main instance and forget
to open it in the others letting the netCDF file id uninitialized.

For us we have programs reading the same file from up to 32 occurences
without any problem.

Ph.P.
CLS Space Oceanography Division

==============================================================================
To unsubscribe netcdfgroup, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690