mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-17 16:50:18 +08:00
Rebased PR by hand against main.
This commit is contained in:
parent
52198b3f12
commit
6a628b9ca7
@ -1703,6 +1703,7 @@ NCZ_put_vars(int ncid, int varid, const size_t *startp, const size_t *countp,
|
||||
do no harm to reextend it to that size. */
|
||||
if (var->ndims)
|
||||
{
|
||||
|
||||
for (d2 = 0; d2 < var->ndims; d2++)
|
||||
{
|
||||
size64_t endindex = start[d2] + stride[d2] * (count[d2] - 1); /* last index written */
|
||||
@ -1727,7 +1728,7 @@ NCZ_put_vars(int ncid, int varid, const size_t *startp, const size_t *countp,
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef LOOK
|
||||
/* If we need to extend it, we also need a new file_spaceid
|
||||
|
@ -54,7 +54,7 @@ int read_back_contents(const char* filename) {
|
||||
int ncid, varid, ndims;
|
||||
size_t i;
|
||||
float data[VARIABLE_SIZE];
|
||||
size_t i;
|
||||
|
||||
|
||||
char var_name[NC_MAX_NAME+1];
|
||||
int dimids_var[1], var_type, natts;
|
||||
|
Loading…
Reference in New Issue
Block a user