NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Problem with C++ set_cur function

In the set_cur C++ function in netcdf.cc, I have made the following 
modification.  This change seems necessary to be able to extend a variable 
with an unlimited dimension.  For instance, in the nctst.cc file, the entire 
unlimited dimension frtime is written first.  Then the P variable can be 
written in pieces.

If someone is familiar with the C++ routines I would greatly appreciate 
feedback on this code.

Sincerely,
Phil Miller
philip.miller@xxxxxxxxxx
(301) 953-6000 x8335


line 665 of netcdf.cc

 if (  (t[i] >= get_dim(i)->size()) &&
       ( i > 1 || !get_dim(i)->is_unlimited()) )
    return FALSE; // too big for dimension


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