diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a92b8095..4e25985ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -857,6 +857,8 @@ IF(ENABLE_PNETCDF) IF(NOT PNETCDF) MESSAGE(STATUS "Cannot find pNetCDF library. Disabling pNetCDF support.") SET(USE_PNETCDF OFF CACHE BOOL "") + ELSE(NOT PNETCDF) + SET(USE_PARALLEL ON CACHE BOOL "") ENDIF(NOT PNETCDF) # ELSE() ## SET(TMP_INC ${CMAKE_REQUIRED_INCLUDES}) diff --git a/include/ncdispatch.h b/include/ncdispatch.h index cd11fa640..0cacd0f6a 100644 --- a/include/ncdispatch.h +++ b/include/ncdispatch.h @@ -14,7 +14,7 @@ #include #include #include -#ifdef HDF5_PARALLEL +#if defined(HDF5_PARALLEL) || defined(USE_PNETCDF) #include #endif #ifdef USE_PARALLEL @@ -245,8 +245,8 @@ int (*put_vars)(int, int, const size_t*, const size_t*, const ptrdiff_t*, const int (*get_varm)(int, int, const size_t*, const size_t*, const ptrdiff_t*, const ptrdiff_t*, void*, nc_type); int (*put_varm)(int, int, const size_t*, const size_t*, const ptrdiff_t*, const ptrdiff_t*, const void*, nc_type); -int (*inq_var_all)(int ncid, int varid, char *name, nc_type *xtypep, - int *ndimsp, int *dimidsp, int *nattsp, +int (*inq_var_all)(int ncid, int varid, char *name, nc_type *xtypep, + int *ndimsp, int *dimidsp, int *nattsp, int *shufflep, int *deflatep, int *deflate_levelp, int *fletcher32p, int *contiguousp, size_t *chunksizesp, int *no_fill, void *fill_valuep, int *endiannessp, diff --git a/libsrcp/ncpdispatch.c b/libsrcp/ncpdispatch.c index 14faf0445..a4e8c3ef2 100644 --- a/libsrcp/ncpdispatch.c +++ b/libsrcp/ncpdispatch.c @@ -715,8 +715,7 @@ NCP_put_vara(int ncid, case NC_UINT: status = ncmpi_put_vara_uint(nc->int_ncid, varid, mpi_start, mpi_count, ip); break; case NC_INT64: - status = ncmpi_put_vara_long(nc->int_ncid, varid, mpi_start, mpi_count, ip); break; - status = ncmpi_put_vara_longlong(nc->int_ncid, varid, mpi_start, mpi_count, ip); break; + status = ncmpi_put_vara_longlong(nc->int_ncid, varid, mpi_start, mpi_count, ip); break; case NC_UINT64: status = ncmpi_put_vara_ulonglong(nc->int_ncid, varid, mpi_start, mpi_count, ip); break; default: