\hypertarget{errcode-internal_8h}{\section{ompi/errhandler/errcode-\/internal.h File Reference}
\label{errcode-internal_8h}\index{ompi/errhandler/errcode-\/internal.\+h@{ompi/errhandler/errcode-\/internal.\+h}}
}
{\ttfamily \#include \char`\"{}ompi\+\_\+config.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}mpi.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}ompi/constants.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/class/opal\+\_\+object.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/class/opal\+\_\+pointer\+\_\+array.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/util/opal\+\_\+sos.\+h\char`\"{}}\\*
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structompi__errcode__intern__t}{ompi\+\_\+errcode\+\_\+intern\+\_\+t}
\begin{DoxyCompactList}\small\item\em Back-\/end type for M\+P\+I error codes. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\hypertarget{errcode-internal_8h_afb1f88b0ae9b02bc0ff4a1acf8fa4231}{\#define {\bfseries O\+M\+P\+I\+\_\+\+M\+A\+X\+\_\+\+E\+R\+R\+O\+R\+\_\+\+S\+T\+R\+I\+N\+G}~64}\label{errcode-internal_8h_afb1f88b0ae9b02bc0ff4a1acf8fa4231}

\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
\hypertarget{errcode-internal_8h_a1da46978c1ca6d4bdffb40aefa07f0b4}{typedef struct \\*
\hyperlink{structompi__errcode__intern__t}{ompi\+\_\+errcode\+\_\+intern\+\_\+t} {\bfseries ompi\+\_\+errcode\+\_\+intern\+\_\+t}}\label{errcode-internal_8h_a1da46978c1ca6d4bdffb40aefa07f0b4}

\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static int \hyperlink{errcode-internal_8h_a70220b596b322774dfbf7e3a8697f207}{ompi\+\_\+errcode\+\_\+get\+\_\+mpi\+\_\+code} (int errcode)
\begin{DoxyCompactList}\small\item\em Return the M\+P\+I errcode for a given internal error code. \end{DoxyCompactList}\item 
int \hyperlink{errcode-internal_8h_a6553f50214db0ea56bfffa096fa1b8a8}{ompi\+\_\+errcode\+\_\+intern\+\_\+init} (void)
\begin{DoxyCompactList}\small\item\em Initialize the error codes. \end{DoxyCompactList}\item 
int \hyperlink{errcode-internal_8h_a78a65c1d6396d9e0279de2956d5c16d4}{ompi\+\_\+errcode\+\_\+intern\+\_\+finalize} (void)
\begin{DoxyCompactList}\small\item\em Finalize the error codes. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\hypertarget{errcode-internal_8h_a2a43c629bed5887c35db923beec47f89}{O\+M\+P\+I\+\_\+\+D\+E\+C\+L\+S\+P\+E\+C \hyperlink{structopal__pointer__array__t}{opal\+\_\+pointer\+\_\+array\+\_\+t} {\bfseries ompi\+\_\+errcodes\+\_\+intern}}\label{errcode-internal_8h_a2a43c629bed5887c35db923beec47f89}

\item 
\hypertarget{errcode-internal_8h_a3a91e3f27b125dcd3ed904b41182ee72}{O\+M\+P\+I\+\_\+\+D\+E\+C\+L\+S\+P\+E\+C int {\bfseries ompi\+\_\+errcode\+\_\+intern\+\_\+lastused}}\label{errcode-internal_8h_a3a91e3f27b125dcd3ed904b41182ee72}

\end{DoxyCompactItemize}


\subsection{Function Documentation}
\hypertarget{errcode-internal_8h_a70220b596b322774dfbf7e3a8697f207}{\index{errcode-\/internal.\+h@{errcode-\/internal.\+h}!ompi\+\_\+errcode\+\_\+get\+\_\+mpi\+\_\+code@{ompi\+\_\+errcode\+\_\+get\+\_\+mpi\+\_\+code}}
\index{ompi\+\_\+errcode\+\_\+get\+\_\+mpi\+\_\+code@{ompi\+\_\+errcode\+\_\+get\+\_\+mpi\+\_\+code}!errcode-\/internal.\+h@{errcode-\/internal.\+h}}
\subsubsection[{ompi\+\_\+errcode\+\_\+get\+\_\+mpi\+\_\+code}]{\setlength{\rightskip}{0pt plus 5cm}static int ompi\+\_\+errcode\+\_\+get\+\_\+mpi\+\_\+code (
\begin{DoxyParamCaption}
\item[{int}]{errcode}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}}\label{errcode-internal_8h_a70220b596b322774dfbf7e3a8697f207}


Return the M\+P\+I errcode for a given internal error code. 

This function guarantees to return a non-\/\+O\+P\+A\+L\+\_\+\+S\+O\+S-\/encoded error code. 

References opal\+\_\+pointer\+\_\+array\+\_\+get\+\_\+item().



Referenced by ompi\+\_\+errhandler\+\_\+request\+\_\+invoke().

\hypertarget{errcode-internal_8h_a78a65c1d6396d9e0279de2956d5c16d4}{\index{errcode-\/internal.\+h@{errcode-\/internal.\+h}!ompi\+\_\+errcode\+\_\+intern\+\_\+finalize@{ompi\+\_\+errcode\+\_\+intern\+\_\+finalize}}
\index{ompi\+\_\+errcode\+\_\+intern\+\_\+finalize@{ompi\+\_\+errcode\+\_\+intern\+\_\+finalize}!errcode-\/internal.\+h@{errcode-\/internal.\+h}}
\subsubsection[{ompi\+\_\+errcode\+\_\+intern\+\_\+finalize}]{\setlength{\rightskip}{0pt plus 5cm}int ompi\+\_\+errcode\+\_\+intern\+\_\+finalize (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{errcode-internal_8h_a78a65c1d6396d9e0279de2956d5c16d4}


Finalize the error codes. 

\begin{DoxyReturn}{Returns}
O\+M\+P\+I\+\_\+\+S\+U\+C\+C\+E\+S\+S Always
\end{DoxyReturn}
Invokes from \hyperlink{mpiruntime_8h_a657cd1789f5cbe7dbb711f6c836398e6}{ompi\+\_\+mpi\+\_\+finalize()}; tears down the error code array. 

References O\+B\+J\+\_\+\+D\+E\+S\+T\+R\+U\+C\+T.



Referenced by ompi\+\_\+mpi\+\_\+finalize().

\hypertarget{errcode-internal_8h_a6553f50214db0ea56bfffa096fa1b8a8}{\index{errcode-\/internal.\+h@{errcode-\/internal.\+h}!ompi\+\_\+errcode\+\_\+intern\+\_\+init@{ompi\+\_\+errcode\+\_\+intern\+\_\+init}}
\index{ompi\+\_\+errcode\+\_\+intern\+\_\+init@{ompi\+\_\+errcode\+\_\+intern\+\_\+init}!errcode-\/internal.\+h@{errcode-\/internal.\+h}}
\subsubsection[{ompi\+\_\+errcode\+\_\+intern\+\_\+init}]{\setlength{\rightskip}{0pt plus 5cm}int ompi\+\_\+errcode\+\_\+intern\+\_\+init (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{errcode-internal_8h_a6553f50214db0ea56bfffa096fa1b8a8}


Initialize the error codes. 

\begin{DoxyReturn}{Returns}
O\+M\+P\+I\+\_\+\+S\+U\+C\+C\+E\+S\+S Upon success 

O\+M\+P\+I\+\_\+\+E\+R\+R\+O\+R Otherwise
\end{DoxyReturn}
Invoked from \hyperlink{mpiruntime_8h_a6352a08abfa7bd8a402a866ecebec0f3}{ompi\+\_\+mpi\+\_\+init()}; sets up all static M\+P\+I error codes, 

References O\+B\+J\+\_\+\+C\+O\+N\+S\+T\+R\+U\+C\+T, opal\+\_\+pointer\+\_\+array\+\_\+init(), and opal\+\_\+pointer\+\_\+array\+\_\+set\+\_\+item().



Referenced by ompi\+\_\+mpi\+\_\+init().

