Go to the documentation of this file. 19 #ifndef TIMPI_CALL_MPI_H 20 #define TIMPI_CALL_MPI_H 24 #include "timpi/timpi_config.h" 35 #define timpi_mpi_var(var) var 41 #define timpi_assert_mpi_success(error_code) \ 44 if (error_code != MPI_SUCCESS) \ 46 char timpi_mpi_error_string[MPI_MAX_ERROR_STRING+1]; \ 47 int timpi_mpi_error_string_len; \ 48 MPI_Error_string(error_code, timpi_mpi_error_string, \ 49 &timpi_mpi_error_string_len); \ 50 timpi_assert_equal_to_msg(error_code, MPI_SUCCESS, \ 51 timpi_mpi_error_string); \ 58 #define timpi_assert_mpi_success(error_code) ((void) 0) 66 #define timpi_call_mpi(mpi_call) \ 69 int timpi_mpi_error_code = mpi_call; \ 70 timpi_assert_mpi_success (timpi_mpi_error_code); \ 76 #define timpi_call_mpi(mpi_call) \ 84 #else // TIMPI_HAVE_MPI 86 #define timpi_mpi_var(var) 88 #define timpi_call_mpi(mpi_call) \ 92 #endif // TIMPI_HAVE_MPI 95 #endif // TIMPI_CALL_MPI_H