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

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


 
 
  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