Skip to content

Commit

Permalink
fixed ncid issue for PIO opening second file
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Sep 9, 2019
1 parent d6097d9 commit 85ec39c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/clib/pioc_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 85ec39c

Please sign in to comment.