Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Sep 6, 2019
1 parent 9c7f67c commit 16c8bfe
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/clib/pio_darray_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -1189,15 +1189,14 @@ pio_read_darray_nc(file_desc_t *file, io_desc_t *iodesc, int vid, void *iobuf)
ndims = iodesc->ndims;

/* Get the number of dims for this var in the file. */
/* if ((ierr = PIOc_inq_varndims(file->pio_ncid, vid, &fndims))) */
/* return pio_err(ios, file, ierr, __FILE__, __LINE__); */
fndims = vdesc->ndims;
PLOG((3, "fndims %d vdesc->ndims %d", fndims, vdesc->ndims));
PLOG((4, "fndims %d ndims %d", fndims, ndims));

/* ??? */
#if USE_VARD_READ
if(!ios->async || !ios->ioproc)
ierr = get_gdim0(file, iodesc, vid, fndims, &gdim0);
#endif
/* PLOG((4, "fndims %d ndims %d", fndims, ndims)); */

/* IO procs will read the data. */
if (ios->ioproc)
Expand Down Expand Up @@ -1464,16 +1463,13 @@ pio_read_darray_nc_serial(file_desc_t *file, io_desc_t *iodesc, int vid,

/* Get number of dims for this var. */
fndims = vdesc->ndims;
/* if ((ierr = PIOc_inq_varndims(file->pio_ncid, vid, &fndims))) */
/* return pio_err(ios, file, ierr, __FILE__, __LINE__); */

/* If setframe was not called, use a default value of 0. This is
* required for backward compatibility. */
if (fndims == ndims + 1 && vdesc->record < 0)
vdesc->record = 0;
PLOG((3, "fndims %d ndims %d vdesc->record %d vdesc->ndims %d", fndims,
ndims, vdesc->record, vdesc->ndims));
/* pioassert(fndims == vdesc->ndims, "bad ndims", __FILE__, __LINE__); */

/* Confirm that we are being called with the correct ndims. */
pioassert((fndims == ndims && vdesc->record < 0) ||
Expand Down

0 comments on commit 16c8bfe

Please sign in to comment.