#include "smpi_errhandler.hpp"
#include "smpi_f2c.hpp"
#include "smpi_keyvals.hpp"
+#include "smpi_config.hpp"
#include <vector>
#include <list>
int mode_ = 0; // exclusive or shared lock
bool allocated_;
bool dynamic_;
- MPI_Errhandler errhandler_ = MPI_ERRORS_ARE_FATAL;
+ MPI_Errhandler errhandler_ = _smpi_cfg_default_errhandler_is_error ? MPI_ERRORS_ARE_FATAL : MPI_ERRORS_RETURN;
public:
static std::unordered_map<int, smpi_key_elem> keyvals_;