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

[netCDF #FVE-747137]: question about test_nc_get_varm



Wei-keng,

Thanks!

I'll check your fixes in before the next release candidate.

--Russ

> Hi, Dennis and Russ
> 
> Attached is the patch that fixes the ticket NCF-300.
> 
> The cause of this bug is the units in imap[] which has been changed
> from bytes to numbers of elements. Hence, lines 300 to 314 in file
> libdispatch/dvarget.c should be deleted. The same applies to dvarput.c at
> lines 293-307. I guess they are just residues from netcdf2.
> 
> The patch also fixes test_read.c and test_write.c under nc_test directory
> for the question I asked in this email chain.
> 
> Attached is also an update test code, varm.c (NC_DOUBLE should be NC_INT.)
> 
> Wei-keng
> 
> 
> 
> 
> On Oct 12, 2014, at 2:37 PM, Unidata netCDF Support wrote:
> 
> > Why do you think they are non-contiguous in buf?
> > Assuming j increments by 1,
> > 1294 p = (char *) buf + j * nctypelen(var_type[i]);
> > will point to successive var_type[i] instances in buf.
> > =Dennis Heimbigner
> >  Unidata
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: FVE-747137
> > Department: Support netCDF
> > Priority: Normal
> > Status: Closed
> >
> 
> 
> 
Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: FVE-747137
Department: Support netCDF
Priority: Normal
Status: Closed