\hypertarget{opal-restart_8c}{\section{opal/tools/opal-\/restart/opal-\/restart.c File Reference}
\label{opal-restart_8c}\index{opal/tools/opal-\/restart/opal-\/restart.\+c@{opal/tools/opal-\/restart/opal-\/restart.\+c}}
}


O\+P\+A\+L Restart command.  


{\ttfamily \#include \char`\"{}opal\+\_\+config.\+h\char`\"{}}\\*
{\ttfamily \#include $<$stdio.\+h$>$}\\*
{\ttfamily \#include $<$errno.\+h$>$}\\*
{\ttfamily \#include \char`\"{}opal/constants.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/util/cmd\+\_\+line.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/util/argv.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/util/show\+\_\+help.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/util/output.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/util/opal\+\_\+environ.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/util/error.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/util/basename.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/mca/base/base.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/mca/base/mca\+\_\+base\+\_\+param.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/runtime/opal.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/runtime/opal\+\_\+cr.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/mca/crs/crs.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/mca/crs/base/base.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/mca/compress/compress.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}opal/mca/compress/base/base.\+h\char`\"{}}\\*
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structopal__restart__globals__t}{opal\+\_\+restart\+\_\+globals\+\_\+t}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{opal-restart_8c_a05afccfcb7b22487df99f2a87a4f41ce}{static int {\bfseries initialize} (int argc, char $\ast$argv\mbox{[}$\,$\mbox{]})}\label{opal-restart_8c_a05afccfcb7b22487df99f2a87a4f41ce}

\item 
\hypertarget{opal-restart_8c_a974a59e931b6b38ac060e05cea17e948}{static int {\bfseries finalize} (void)}\label{opal-restart_8c_a974a59e931b6b38ac060e05cea17e948}

\item 
static int \hyperlink{opal-restart_8c_a1c6cda197a32141227af69a440929ac6}{parse\+\_\+args} (int argc, char $\ast$argv\mbox{[}$\,$\mbox{]})
\item 
\hypertarget{opal-restart_8c_aa1254c5f203c9d4b062e00b64e76f6af}{static int {\bfseries check\+\_\+file} (void)}\label{opal-restart_8c_aa1254c5f203c9d4b062e00b64e76f6af}

\item 
\hypertarget{opal-restart_8c_abf1976318a48e4ee77320c8c2ad42828}{static int {\bfseries post\+\_\+env\+\_\+vars} (int prev\+\_\+pid, \hyperlink{structopal__crs__base__snapshot__1__0__0__t}{opal\+\_\+crs\+\_\+base\+\_\+snapshot\+\_\+t} $\ast$snapshot)}\label{opal-restart_8c_abf1976318a48e4ee77320c8c2ad42828}

\item 
\hypertarget{opal-restart_8c_a0ddf1224851353fc92bfbff6f499fa97}{int {\bfseries main} (int argc, char $\ast$argv\mbox{[}$\,$\mbox{]})}\label{opal-restart_8c_a0ddf1224851353fc92bfbff6f499fa97}

\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\hypertarget{opal-restart_8c_a8dba51c30c66db3c3bdcdedae907001b}{static char $\ast$ {\bfseries expected\+\_\+crs\+\_\+comp} = N\+U\+L\+L}\label{opal-restart_8c_a8dba51c30c66db3c3bdcdedae907001b}

\item 
\hypertarget{opal-restart_8c_aedb454ff345d83a5c2c6ccb5510ee5c4}{\hyperlink{structopal__restart__globals__t}{opal\+\_\+restart\+\_\+globals\+\_\+t} {\bfseries opal\+\_\+restart\+\_\+globals}}\label{opal-restart_8c_aedb454ff345d83a5c2c6ccb5510ee5c4}

\item 
\hypertarget{opal-restart_8c_a69f8880faeb9e19bb4259ef8948d3f85}{\hyperlink{structopal__cmd__line__init__t}{opal\+\_\+cmd\+\_\+line\+\_\+init\+\_\+t} {\bfseries cmd\+\_\+line\+\_\+opts} \mbox{[}$\,$\mbox{]}}\label{opal-restart_8c_a69f8880faeb9e19bb4259ef8948d3f85}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
O\+P\+A\+L Restart command. 

This command will restart a single process from the checkpoint generated by the opal-\/checkpoint command. 

\subsection{Function Documentation}
\hypertarget{opal-restart_8c_a1c6cda197a32141227af69a440929ac6}{\index{opal-\/restart.\+c@{opal-\/restart.\+c}!parse\+\_\+args@{parse\+\_\+args}}
\index{parse\+\_\+args@{parse\+\_\+args}!opal-\/restart.\+c@{opal-\/restart.\+c}}
\subsubsection[{parse\+\_\+args}]{\setlength{\rightskip}{0pt plus 5cm}static int parse\+\_\+args (
\begin{DoxyParamCaption}
\item[{int}]{argc, }
\item[{char $\ast$}]{argv\mbox{[}$\,$\mbox{]}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{opal-restart_8c_a1c6cda197a32141227af69a440929ac6}
Put all of the M\+C\+A arguments in the environment

Now start parsing our specific arguments

References opal\+\_\+argv\+\_\+count(), opal\+\_\+argv\+\_\+join(), opal\+\_\+cmd\+\_\+line\+\_\+create(), opal\+\_\+cmd\+\_\+line\+\_\+get\+\_\+tail(), opal\+\_\+cmd\+\_\+line\+\_\+get\+\_\+usage\+\_\+msg(), opal\+\_\+cmd\+\_\+line\+\_\+parse(), and opal\+\_\+show\+\_\+help\+\_\+string().

