Located in file: MEL.hpp
MEL::Abort(int ierr, const std::string &message)¶Calls MPI_Abort with the given error code and prints a string message to stderr.
ierr - The error code to throw
message - The message to print to stderr describing what happened
MEL::Exit(const int errcode)¶MEL alternative to std::exit.
errcode - The error code to exit with
MEL::Exit(const int errcode, const std::string &msg)¶MEL alternative to std::exit.
errcode - The error code to exit with
msg - A message to print to stderr as the program exits
MEL::DefaultErrorHandler(MPI_Comm *comm, int *ierr, ...)¶A default error handler that can be attached to MPI objects to give basic error catching.
comm - Comm world in which the error occured
ierr - The error code that was thrown
MEL::AddErrorClass()¶Add an error class for MPI to reference.
MEL::AddErrorCode(const int errClass)¶Add an error code to an exisiting error class for MPI to reference.
errClass - The error class to add the error code to
MEL::AddErrorCode()¶Add an error code to a new error class for MPI to reference.
MEL::AddErrorString(const int err, const std::string &str)¶Add an error string to an existing error code for MPI to reference.
err - The error code to bind the string to
str - The error string
MEL::AddErrorString(const std::string &str)¶Add an error string to a new existing error code for MPI to reference.
str - The error string
MEL::GetErrorClass(const int errCode)¶Get the error class code of the given error code.
errCode - The error code
MEL::GetErrorString(const int errCode)¶Get the error class code of the given error code.
errCode - The error code
MEL::ErrorHandlerFree(ErrorHandler &errHndl)¶Free an error handler that was previously added.
errHndl - The error handler object that references the bound function
MEL::ErrorHandlerFree(std::vector<ErrorHandler> &errHndls)¶Free a vector Error Handlers.
errHndls - A std::vector of Error Handlers
MEL::ErrorHandlerFree(T0 &d0, T1 &d1, Args&&... args)¶Free the varadic set of error handlers provided.
d0 - The first error handler to free
d1 - The second error handler to free
args - The varadic set of remaining error handlers to free