19#ifndef ESPRESSO_SCRIPT_INTERFACE_PARALLEL_EXCEPTION_HANDLER_HPP
20#define ESPRESSO_SCRIPT_INTERFACE_PARALLEL_EXCEPTION_HANDLER_HPP
24#include <boost/mpi/communicator.hpp>
61 : m_comm(std::
move(comm)) {}
77 }
catch (T
const &error) {
84 void handle_impl(std::exception
const *error)
const;
85 boost::mpi::communicator m_comm;
Handle exceptions thrown in MPI parallel code.
ParallelExceptionHandler(boost::mpi::communicator comm)
void parallel_try_catch(std::function< void()> const &callback) const
Handle exceptions in synchronous code.
This file contains the errorhandling code for severe errors, like a broken bond or illegal parameter ...
T get_value(Variant const &v)
Extract value of specific type T from a Variant.