nc_test

Robert Latham robl at mcs.anl.gov
Fri Mar 7 11:39:51 CST 2003


On Fri, Feb 28, 2003 at 04:00:15PM -0600, Robert Latham wrote:
> hi guys.
> 
> the test/nc_test is a test from the serial netcdf distribution.  I've
> gotten it to build under parallel-netcdf, but it doesn't get very far.

Thanks to jianwei's help i've gotten a little further:  i get a
segfault when trying to write data.  

At some point, 'nc_test -c' calls ncmpi_put_vara_text_all, which
eventually calls NC_set_vara_file_view.  The problem is the NC_var
passed into NC_set_vara_file_view has some null arrays:

(gdb) p *varp
$8 = {xsz = 1, shape = 0x0, dsizes = 0x0, name = 0x81096c0, ndims = 0,
  dimids = 0x0, attrs = {nalloc = 0, nelems = 0, value = 0x0}, type = NC_CHAR,
  len = 4, begin = 6076}


Is it an error for the client to have null 'shape' and 'dsizes'
members, or should ncmpi_put_vara_all treat that condition as 'no work
to do' and return NC_NOERR ?

thanks
==rob

-- 
Rob Latham
Mathematics and Computer Science Division    A215 0178 EA2D B059 8CDF
Argonne National Labs, IL USA                B29D F333 664A 4280 315B



More information about the parallel-netcdf mailing list