Alsvinn
0.5.3
The fast FVM simulator with UQ support
alsutils
include
alsutils
mpi
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); \
} \
}
alsutils::log::error
Definition:
log.hpp:49
Generated by
1.8.13