[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #SVH-828273]: nc_test failure in test_ncsync for netcdf4/HDF5 component only.



> Hi Ed,
> As an add on to my earlier message. I can now get the 64 bit Windows to pass
> all of the tests in nctests/driver.c by modifying function nvdims in v2i.c to
> look at the group variables when processing NETCDF-4 files.  I check to see 
> if I
> am using netcdf3 or netcdf4 (you probably know a better check than the one I
> use). If it is netcdf3 I use the original check that looks at ncp->vars. If 
> it's
> NETCDF-4 I get the group info and look at group->nvars to get the number of
> variables.  This works (at least for driver.c).  I have attached my version of
> nvdims that works for me. I'm guessing you guys can write a much better
> implementation than me but I think this proves to me that there is a bug in 
> the
> NETCDF code.
> 
> Hope this helps as products like NETCDF are a great benefit to the scientific
> community.
> 
> Cheers
> Nick Lloyd.
> 
> 

Howdy Nick!

Of course as soon as I asserted that this was not a bug, a little part of my 
brain told me that every time I do that, it turns out to be a bug. Software 
engineering is funny that way! ;-)

I have entered this in our new issue database and it turns out to be the 100th 
issue in the netCDF database. In celebration of this you may have as many free 
copies of netCDF as you wish.

If you want to track this, see here:
https://www.unidata.ucar.edu/jira/browse/NCF-100

You can also register if you have a comment. I suspect this will be fixed 
before the next release...

What I don't understand is why this was never found before. I will have to take 
a look at the tests to see why we didn't catch this one.

Thanks, and keep on netCDFing!

Ed

Ticket Details
===================
Ticket ID: SVH-828273
Department: Support netCDF
Priority: Normal
Status: Closed