From a9245e8384090b1484c165aa8bf6d7afc758f038 Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Fri, 9 Aug 2019 14:36:51 -0600 Subject: [PATCH] must allocate on ioroot for serial io --- src/clib/pio_darray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clib/pio_darray.c b/src/clib/pio_darray.c index 9d752c1ee96..a94b98f123a 100644 --- a/src/clib/pio_darray.c +++ b/src/clib/pio_darray.c @@ -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. */