mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-04-24 18:30:51 +08:00
Remove error check for NC_INT64 type
There is a case that handles a memtype of NC_INT64, so the code should not error out if that memtype is passed in. This type is also handled in the other file types, so not sure why it should cause invalid values error in parallel-netcdf mode.
This commit is contained in:
parent
fbf232b055
commit
0794171bcc
@ -564,10 +564,6 @@ NC5_get_vara(int ncid,
|
||||
nc5 = NC5_DATA(nc);
|
||||
assert(nc5);
|
||||
|
||||
/* No NC_LONG for parallel-netcdf library! */
|
||||
if(memtype == NC_INT64)
|
||||
return NC_EINVAL;
|
||||
|
||||
/* get variable's rank */
|
||||
status= ncmpi_inq_varndims(nc->int_ncid, varid, &rank);
|
||||
if(status) return status;
|
||||
@ -645,10 +641,6 @@ NC5_put_vara(int ncid,
|
||||
nc5 = NC5_DATA(nc);
|
||||
assert(nc5);
|
||||
|
||||
/* No NC_LONG for parallel-netcdf library! */
|
||||
if(memtype == NC_INT64)
|
||||
return NC_EINVAL;
|
||||
|
||||
/* get variable's rank */
|
||||
status = ncmpi_inq_varndims(nc->int_ncid, varid, &rank);
|
||||
if(status) return status;
|
||||
|
Loading…
x
Reference in New Issue
Block a user