From 1382b29aa3942d2511a21b483ca7b2b2945e4301 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Fri, 5 Sep 2008 12:26:06 +0000 Subject: [PATCH] Add the MPI::Comm::Call_errhandler() function (it was previously missing!). Fixes trac:1483. This commit was SVN r19503. The following Trac tickets were found above: Ticket 1483 --> https://svn.open-mpi.org/trac/ompi/ticket/1483 --- ompi/mpi/cxx/comm.h | 1 + ompi/mpi/cxx/comm_inln.h | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/ompi/mpi/cxx/comm.h b/ompi/mpi/cxx/comm.h index 2469d2f50b..668e009e63 100644 --- a/ompi/mpi/cxx/comm.h +++ b/ompi/mpi/cxx/comm.h @@ -386,6 +386,7 @@ public: virtual Errhandler Get_errhandler() const; + void Call_errhandler(int errorcode) const; // // Keys and Attributes diff --git a/ompi/mpi/cxx/comm_inln.h b/ompi/mpi/cxx/comm_inln.h index b18f002a9d..303a023b59 100644 --- a/ompi/mpi/cxx/comm_inln.h +++ b/ompi/mpi/cxx/comm_inln.h @@ -548,6 +548,12 @@ MPI::Comm::Set_errhandler(const MPI::Errhandler& errhandler) const (void)MPI_Comm_set_errhandler(mpi_comm, errhandler); } +inline void +MPI::Comm::Call_errhandler(int errorcode) const +{ + (void) MPI_Comm_call_errhandler(mpi_comm, errorcode); +} + // 1) original Create_keyval that takes the first 2 arguments as C++ // functions inline int