Skip to content
Snippets Groups Projects
Commit 59a8c1a9 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Code formatting

parent d3c8ed02
No related tags found
2 merge requests!136Master,!107Code timing and verbosity
...@@ -37,11 +37,12 @@ ...@@ -37,11 +37,12 @@
*/ */
#ifdef WITH_MPI #ifdef WITH_MPI
extern int engine_rank; extern int engine_rank;
#define error(s, ...) \ #define error(s, ...) \
{ \ { \
fprintf(stderr, "[%04i] %s %s:%s():%i: " s "\n", engine_rank , \ fprintf(stderr, "[%04i] %s %s:%s():%i: " s "\n", engine_rank, \
clocks_get_timeofday(), __FILE__, __FUNCTION__, __LINE__, ##__VA_ARGS__); \ clocks_get_timeofday(), __FILE__, __FUNCTION__, __LINE__, \
MPI_Abort(MPI_COMM_WORLD, -1); \ ##__VA_ARGS__); \
MPI_Abort(MPI_COMM_WORLD, -1); \
} }
#else #else
#define error(s, ...) \ #define error(s, ...) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment