Skip to content

Commit

Permalink
Merge pull request #290 from tim-griesbach/fix-file-cleanup
Browse files Browse the repository at this point in the history
Fix file cleanup
  • Loading branch information
cburstedde authored Mar 4, 2024
2 parents cc94430 + 02241b9 commit dd9816c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/p4est_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,11 +601,7 @@ p4est_file_error_cleanup (sc_MPI_File * file)
{
/* no error checking since we are called under an error condition */
P4EST_ASSERT (file != NULL);
#ifdef P4EST_ENABLE_MPIIO
if (*file != sc_MPI_FILE_NULL) {
#else
if ((*file)->file != sc_MPI_FILE_NULL) {
#endif
/* We do not use here the libsc closing function since we do not perform
* error checking in this function that is only called if we had already
* an error.
Expand Down
2 changes: 1 addition & 1 deletion test/test_io2.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ main (int argc, char **argv)
SC_CHECK_ABORT (p4est_file_write_field
(fc, quad_data.elem_size, &quad_data,
"Quadrant-wise char", &errcode) != NULL,
"Write ranks");
"Write chars");

SC_CHECK_ABORT (p4est_file_write_field
(fc, quads->elem_size, quads, "Quadrant data", &errcode)
Expand Down

0 comments on commit dd9816c

Please sign in to comment.