Skip to content

Commit

Permalink
changed examples to PIOc_free_iosystem()
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Jun 4, 2019
1 parent 9132d9f commit d392ff9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/c/darray_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ int main(int argc, char* argv[])

/* Finalize the IO system. Only call this from the computation tasks. */
printf("%d %s Freeing PIO resources\n", my_rank, TEST_NAME);
if ((ret = PIOc_finalize(iosysid)))
if ((ret = PIOc_free_iosystem(iosysid)))
ERR(ret);
} /* endif comp_task */

Expand Down
2 changes: 1 addition & 1 deletion examples/c/darray_no_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ int main(int argc, char* argv[])

/* Finalize the IO system. */
printf("rank: %d Freeing PIO resources...\n", my_rank);
if ((ret = PIOc_finalize(iosysid)))
if ((ret = PIOc_free_iosystem(iosysid)))
ERR(ret);

/* Finalize the MPI library. */
Expand Down
4 changes: 2 additions & 2 deletions examples/c/examplePio.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ struct examplePioClass* epc_closeFile( struct examplePioClass* this )
This function frees the memory used in this example. It calls the
ParallelIO library function PIOc_freedecomp() to free
decomposition resources. Then calles PIOc_finalize() and
decomposition resources. Then calles PIOc_free_iosystem() and
MPI_finalize() to free library resources.
@param [in] this Pointer to self.
Expand All @@ -457,7 +457,7 @@ struct examplePioClass* epc_cleanUp( struct examplePioClass* this )
free(this->compdof);

PIOc_freedecomp(this->pioIoSystem, this->iodescNCells);
PIOc_finalize(this->pioIoSystem);
PIOc_free_iosystem(this->pioIoSystem);
MPI_Finalize();

return this;
Expand Down

0 comments on commit d392ff9

Please sign in to comment.