Alsvinn  0.5.3
The fast FVM simulator with UQ support
Macros
safe_call.hpp File Reference
#include "alsutils/error/Exception.hpp"

Go to the source code of this file.

Macros

#define MPI_SAFE_CALL(X)
 

Macro Definition Documentation

◆ MPI_SAFE_CALL

#define MPI_SAFE_CALL (   X)
Value:
{ \
int error = X; \
if (error != MPI_SUCCESS) { \
std::cerr << "Noticed MPI Error in " << __FILE__ << ":" << __LINE__ << std::endl; \
std::cerr << "\tLine was:\"" << #X << "\"" << std::endl; \
THROW("MPI error" << std::endl << "Line was: " << std::endl <<"\t" << #X << "\nError code: " << error); \
} \
}
Definition: log.hpp:49