Skip to content

Commit

Permalink
Merge pull request ESMCI#1581 from jedwards4b/netcdf_serial_bugfix
Browse files Browse the repository at this point in the history
must allocate on ioroot for serial io
  • Loading branch information
jedwards4b authored Aug 9, 2019
2 parents 04d8dc5 + a9245e8 commit 7b2114e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clib/pio_darray.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ 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)
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 7b2114e

Please sign in to comment.