C++ interface problems

All,

Currently I'm trying to use the libnetcdf_c++.a interface in a fairly 
simple program on an SGI OCTANE running IRIX 6.5.3.  While everything
has been compiled and the tests check out fine, a bug has cropped up that
is inexplicable:  The following lines of code 

cerr << "Is it valid?  " << output_file.is_valid() << endl;
cerr << "What is the id?  " << output_file.id() << endl;
cerr << "Is Latitude valid? " << output_file.get_var("Latitude")->is_valid() << 
endl;

elicits the following output

Is it valid?  1
What is the id?  3
ncvarid: ncid 3: Not a netCDF id

Any hints?

Thanks in advance....
-- 
                                        Gregory J. Orris 
                                        Code 7140
                                        Naval Research Laboratory
                                        Washington, D.C. 20375
                                        tel: 202-404-4827
                                        fax: 202-404-7732
                                        e-mail: orris@xxxxxxxxxxxxxxxxxx

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