Skip to content

Commit

Permalink
fixed warnings in darray_no_async.c
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Jun 25, 2019
1 parent 32a1f48 commit 45bed2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
16 changes: 0 additions & 16 deletions examples/c/darray_no_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,6 @@ char dim_name[NDIM3][PIO_MAX_NAME + 1] = {"unlimted", "x", "y"};
#define DECOMP_TITLE "Example Decomposition from darray_no_async.c"
#define DECOMP_HISTORY "This file is created by the program darray_no_async in the PIO C library"

/* Handle MPI errors. This should only be used with MPI library
* function calls. */
#define MPIERR(e) do { \
MPI_Error_string(e, err_buffer, &resultlen); \
printf("MPI error, line %d, file %s: %s\n", __LINE__, __FILE__, err_buffer); \
MPI_Finalize(); \
return 2; \
} while (0)

/* Handle non-MPI errors by finalizing the MPI library and exiting
* with an exit code. */
#define ERR(e) do { \
MPI_Finalize(); \
return e; \
} while (0)

/* Global err buffer for MPI. When there is an MPI error, this buffer
* is used to store the error message that is associated with the MPI
* error. */
Expand Down
2 changes: 1 addition & 1 deletion src/clib/pio_error.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
MPI_Error_string(e, err_buffer, &resultlen); \
fprintf(stderr, "MPI error, line %d, file %s: %s\n", __LINE__, __FILE__, err_buffer); \
MPI_Finalize(); \
return ERR_AWFUL; \
return PIO_EIO; \
} while (0)

/**
Expand Down

0 comments on commit 45bed2c

Please sign in to comment.