mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Set variable no_fill to match database default (nc4)
In nc4 mode, the variables were ignoring the default "database" fill/no_fill mode set via a call to nc_set_fill(). This sets the no_fill mode on the variable to match the default database setting at the time the variable is defined.
This commit is contained in:
parent
1e39435adb
commit
8401e2087e
@ -456,6 +456,7 @@ nc_def_var_nc4(int ncid, const char *name, nc_type xtype,
|
|||||||
var->varid = grp->nvars++;
|
var->varid = grp->nvars++;
|
||||||
var->ndims = ndims;
|
var->ndims = ndims;
|
||||||
var->is_new_var = NC_TRUE;
|
var->is_new_var = NC_TRUE;
|
||||||
|
var->no_fill = h5->fill_mode;
|
||||||
|
|
||||||
nc4_vararray_add(grp, var);
|
nc4_vararray_add(grp, var);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user