Skip to content

Commit

Permalink
must allocate on ioroot for serial io
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Aug 9, 2019
1 parent 04d8dc5 commit a9245e8
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 a9245e8

Please sign in to comment.