From 85ec39cd825a71f1b5e56a12e68446a26d796823 Mon Sep 17 00:00:00 2001 From: edwardhartnett Date: Mon, 9 Sep 2019 05:54:39 -0600 Subject: [PATCH] fixed ncid issue for PIO opening second file --- src/clib/pioc_support.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/clib/pioc_support.c b/src/clib/pioc_support.c index 2a59e07fbb9..8598cfff18e 100644 --- a/src/clib/pioc_support.c +++ b/src/clib/pioc_support.c @@ -2789,6 +2789,7 @@ PIOc_openfile_retry(int iosysid, int *ncidp, int *iotype, const char *filename, /* The ncid was assigned on the computational * processors. Change the ncid to one that I/O and * computational components can agree on. */ + file->pio_ncid = pio_next_ncid++; if ((ierr = nc4_file_change_ncid(*ncidp, file->pio_ncid))) return pio_err(NULL, file, ierr, __FILE__, __LINE__); file->pio_ncid = file->pio_ncid << ID_SHIFT;