mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Invert solution as discussed at https://github.com/Unidata/netcdf-c/pull/2618
This commit is contained in:
parent
f40f524303
commit
b40f8ce367
@ -288,7 +288,7 @@ typedef struct NC_FILE_INFO
|
||||
{
|
||||
NC_OBJ hdr;
|
||||
NC *controller; /**< Pointer to containing NC. */
|
||||
#ifdef USE_PARALLEL4
|
||||
#ifdef USE_PARALLEL
|
||||
MPI_Comm comm; /**< Copy of MPI Communicator used to open the file. */
|
||||
MPI_Info info; /**< Copy of MPI Information Object used to open the file. */
|
||||
#endif
|
||||
|
@ -163,7 +163,7 @@ find_var_dim_max_length(NC_GRP_INFO_T *grp, int varid, int dimid,
|
||||
if (var->dimids[d] == dimid)
|
||||
*maxlen = *maxlen > h5dimlen[d] ? *maxlen : h5dimlen[d];
|
||||
|
||||
#ifdef USE_PARALLEL4
|
||||
#ifdef USE_PARALLEL
|
||||
/* If we are doing parallel I/O in collective mode (with
|
||||
* either pnetcdf or HDF5), then communicate with all
|
||||
* other tasks in the collective and find out which has
|
||||
|
Loading…
Reference in New Issue
Block a user