Skip to content

Commit

Permalink
protected use of nc4_file_change_ncid() with ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Aug 30, 2019
1 parent 0fccc80 commit 1096254
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/clib/pioc_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -2113,6 +2113,7 @@ PIOc_createfile_int(int iosysid, int *ncidp, int *iotype, const char *filename,
* generated on the computation processors, with the ncid
* generated by the I/O processors (which know about all open
* files). In normal PIO operation, the ncid is generated here. */
#ifdef NETCDF_INTEGRATION
if (use_ext_ncid)
{
/* The ncid was assigned on the computational
Expand All @@ -2123,6 +2124,7 @@ PIOc_createfile_int(int iosysid, int *ncidp, int *iotype, const char *filename,
file->pio_ncid = file->pio_ncid << ID_SHIFT;
PLOG((2, "changed ncid to file->pio_ncid = %d", file->pio_ncid));
}
#endif /* NETCDF_INTEGRATION */
PLOG((2, "file->fh = %d file->pio_ncid = %d", file->fh, file->pio_ncid));

/* Return the ncid to the caller. */
Expand Down

0 comments on commit 1096254

Please sign in to comment.