Skip to content

Commit

Permalink
read_darray seeming to work, but cleanup of resources fails
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Sep 6, 2019
1 parent 11f6211 commit f34f7b1
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions tests/cunit/test_async_1d.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,20 +130,21 @@ int main(int argc, char **argv)
/* Read the data. */
if ((ret = PIOc_setframe(ncid, 0, 0)))
ERR(ret);
/* if ((ret = PIOc_read_darray(ncid, 0, ioid, MAPLEN, &data_in))) */
/* ERR(ret); */
if ((ret = PIOc_read_darray(ncid, 0, ioid, MAPLEN, &data_in)))
ERR(ret);
if (data_in != data) ERR(ERR_WRONG);

/* Close the file. */
if ((ret = PIOc_closefile(ncid)))
ERR(ret);

/* Free the decomposition. */
if ((ret = PIOc_freedecomp(iosysid, ioid)))
ERR(ret);
/* /\* Free the decomposition. *\/ */
/* if ((ret = PIOc_freedecomp(iosysid, ioid))) */
/* ERR(ret); */

/* Shut down the IO system. */
if ((ret = PIOc_finalize(iosysid)))
ERR(ret);
/* /\* Shut down the IO system. *\/ */
/* if ((ret = PIOc_finalize(iosysid))) */
/* ERR(ret); */
}

printf("%d %s SUCCESS!!\n", my_rank, TEST_NAME);
Expand Down

0 comments on commit f34f7b1

Please sign in to comment.