mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
fixed some issues
This commit is contained in:
parent
a98df356d9
commit
c175a302da
@ -5,8 +5,13 @@
|
||||
Includes for some HDF5 stuff needed by tests.
|
||||
*/
|
||||
|
||||
#ifndef _NCDIMSCALE_H_
|
||||
#define _NCDIMSCALE_H_
|
||||
|
||||
typedef struct hdf5_objid
|
||||
{
|
||||
unsigned long fileno[2]; /* file number */
|
||||
haddr_t objno[2]; /* object number */
|
||||
} HDF5_OBJID_T;
|
||||
|
||||
#endif
|
||||
|
@ -1771,19 +1771,14 @@ int
|
||||
nc_delete_mp(const char * path, int basepe)
|
||||
{
|
||||
NC *nc;
|
||||
NC3_INFO* nc3;
|
||||
int status;
|
||||
int ncid;
|
||||
size_t chunk = 512;
|
||||
|
||||
status = nc_open(path,NC_NOWRITE,&ncid);
|
||||
if(status) return status;
|
||||
|
||||
status = NC_check_id(ncid,&nc);
|
||||
if(status) return status;
|
||||
nc3 = NC3_DATA(nc);
|
||||
|
||||
nc3->chunk = chunk;
|
||||
|
||||
#if defined(LOCKNUMREC) /* && _CRAYMPP */
|
||||
if (status = NC_init_pe(nc3, basepe)) {
|
||||
|
Loading…
Reference in New Issue
Block a user