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:
Greg Sjaardema 2015-06-30 20:02:15 -06:00
parent fbf232b055
commit 0794171bcc

View File

@ -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;