nc_test status

Jianwei Li jianwei at cheetah.cpdc.ece.nwu.edu
Tue Mar 11 10:53:37 CST 2003


rob,

Yes, you are absolutely right. That a bug in ncmpi_put/get_var_type()
when dealing with "nelems" for 0-dimensional variables.
I've fixed and updated it. If ok for now.
I'll check the code for more similar bugs to make things easier.

Thank you very much!

Jianwei

> On Mon, Mar 10, 2003 at 11:12:56AM -0600, Robert Latham wrote:
> > Total number of failures: 41717
>
> i'm an idiot.  i cleaned out the directory before running that test,
> including the .nc file.
>
> it now passes a lot of tests, but does fail the ncmpi_get_var_short
> test:  "test_ncmpi_get_var_short" is an m4-generated test, so it's a
> bit of a pain to debug... i'm comparing ncmpi_get_var_short with
> nc_get_var_short: it looks like we don't handle scalar variables
> correctly?  We get a seg fault here:
>
> 	nelems *= varp->shape[0];
>
> and serial netcdf does this:
>
> 	if(varp->ndims == 0) /* scalar variable */
>         {
>                 const size_t zed = 0;
>                 return( getNCv_short(ncp, varp, &zed, 1, value) );
>         }
>
>
> I just re-read some recent messages:  Jianwei, this is exactly like
> the problem you fixed for ncmpi_put_vara_text_all:  the variables have
> null 'shape' and 'dsizes' arrays.
>




More information about the parallel-netcdf mailing list