mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
using get_vars but not put_vars
This commit is contained in:
parent
4f83e929c0
commit
12cf3254dc
@ -1673,7 +1673,7 @@ NC4_put_vara(int ncid, int varid, const size_t *startp,
|
||||
if (!(nc = nc4_find_nc_file(ncid, NULL)))
|
||||
return NC_EBADID;
|
||||
|
||||
return nc4_put_vars(nc, ncid, varid, startp, countp, NULL, memtype,
|
||||
return nc4_put_vara(nc, ncid, varid, startp, countp, memtype, 0,
|
||||
(void *)op);
|
||||
}
|
||||
|
||||
@ -1706,8 +1706,8 @@ NC4_get_vara(int ncid, int varid, const size_t *startp,
|
||||
return NC_EBADID;
|
||||
|
||||
/* Get the data. */
|
||||
return nc4_get_vars(nc, ncid, varid, startp, countp, NULL, memtype,
|
||||
(void *)ip);
|
||||
return nc4_get_vara(nc, ncid, varid, startp, countp, memtype,
|
||||
0, (void *)ip);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user