Skip to content

Commit

Permalink
Merge pull request ESMCI#1597 from NCAR/ejh_warning
Browse files Browse the repository at this point in the history
fixed warning in pio_darray.c
  • Loading branch information
edhartnett authored Sep 5, 2019
2 parents ee94d47 + cf5173a commit b53c2d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/clib/pio_darray.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,9 @@ PIOc_write_darray_multi(int ncid, const int *varids, int ioid, int nvars,
* large as the largest used to accommodate this serial io
* method. */
rlen = 0;
if (iodesc->llen > 0 || (file->iotype==PIO_IOTYPE_NETCDF || file->iotype == PIO_IOTYPE_NETCDF4C) && ios->iomaster)
if (iodesc->llen > 0 ||
((file->iotype == PIO_IOTYPE_NETCDF ||
file->iotype == PIO_IOTYPE_NETCDF4C) && ios->iomaster))
rlen = iodesc->maxiobuflen * nvars;

/* Allocate iobuf. */
Expand Down

0 comments on commit b53c2d3

Please sign in to comment.