26#ifndef ESPRESSO_SRC_CORE_ERROR_HANDLING_HPP
27#define ESPRESSO_SRC_CORE_ERROR_HANDLING_HPP
92 const std::string &file,
int line,
93 const std::string &function);
95#define runtimeErrorMsg() \
96 ErrorHandling::_runtimeMessageStream( \
97 ErrorHandling::RuntimeError::ErrorLevel::ERROR, __FILE__, __LINE__, \
98 ESPRESSO_PRETTY_FUNCTION_EXTENSION)
100#define runtimeWarningMsg() \
101 ErrorHandling::_runtimeMessageStream( \
102 ErrorHandling::RuntimeError::ErrorLevel::WARNING, __FILE__, __LINE__, \
103 ESPRESSO_PRETTY_FUNCTION_EXTENSION)
Communicator communicator
This file contains the defaults for ESPResSo.
int check_runtime_errors(boost::mpi::communicator const &comm)
Count runtime errors on all nodes.
void flush_runtime_errors_local()
Flush runtime errors to standard error on the local node.
int check_runtime_errors_local()
Count runtime errors on the local node.
void errexit()
exit ungracefully, core dump if switched on.
RuntimeErrorStream _runtimeMessageStream(RuntimeError::ErrorLevel level, const std::string &file, const int line, const std::string &function)
std::vector< RuntimeError > mpi_gather_runtime_errors()
Gather messages on main rank.
std::vector< RuntimeError > mpi_gather_runtime_errors_all(bool is_head_node)
Gather messages on main rank.
void init_error_handling(std::weak_ptr< Communication::MpiCallbacks > callbacks)
Initialize the error collection system.
ErrorLevel
The error level, warnings are only displayed to the user, errors are fatal.