Changeset 1165 for palm/trunk
- Timestamp:
- May 24, 2013 12:33:14 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/TUTORIAL/SOURCE/runs_with_mrun.tex
r973 r1165 136 136 % Folie 4 137 137 \begin{frame} 138 \tikzstyle{green} = [rectangle, draw, fill=green!20, text width=0.45\textwidth,font=\scriptsize]138 \tikzstyle{green} = [rectangle, draw, fill=green!20, font=\scriptsize] 139 139 \tikzstyle{yellow} = [rectangle, draw, fill=yellow!20, text width=0.18\textwidth, font=\scriptsize] 140 140 \tikzstyle{yellowsmall} = [rectangle, draw, fill=yellow!20, text width=0.10\textwidth, font=\scriptsize] … … 146 146 \begin{enumerate} 147 147 \item<2-> Create a temporary working directory and change into this directory:\\ 148 \quad \texttt{mkdir <t empdir>/<username>.<randomnumber>}\\149 \quad \texttt{cd <t empdir>/<username>.<randomnumber>}\\148 \quad \texttt{mkdir <tmpdir>/<username>.<randomnumber>}\\ 149 \quad \texttt{cd <tmpdir>/<username>.<randomnumber>}\\ 150 150 \ \\ 151 The path of \texttt{<t empdir>} is given in the configuration file151 The path of \texttt{<tmpdir>} is given in the configuration file 152 152 \texttt{.mrun.config} by the environment variable \texttt{tmp\underline{ }user\underline{ }catalog}, e.g.:\\ 153 153 \quad \texttt{\%tmp\underline{ }user\underline{ }catalog /tmp \hspace{30mm} <hi> parallel}\\ … … 158 158 \begin{center} 159 159 \begin{tikzpicture}[auto, node distance=0] 160 \uncover<4->{\node [green] (green) {/ tmp/$<$username$>$.$<$randomnumber$>$};}160 \uncover<4->{\node [green] (green) {/$<$tmpdir$>$/$<$username$>$.$<$randomnumber$>$};} 161 161 \end{tikzpicture} 162 162 \end{center} … … 165 165 \vspace{1mm} 166 166 \onslide<6-> \tiny \quad \texttt{cp <user\underline{ }input\underline{ }file1> 167 / tmp/<username>.<randomnumber>/<temporary\underline{ }input\underline{ }file1>}\\167 /<tmpdir>/<username>.<randomnumber>/<temporary\underline{ }input\underline{ }file1>}\\ 168 168 \quad \texttt{cp <user\underline{ }input\underline{ }file2> 169 / tmp/<username>.<randomnumber>/<temporary\underline{ }input\underline{ }file2>}\\169 /<tmpdir>/<username>.<randomnumber>/<temporary\underline{ }input\underline{ }file2>}\\ 170 170 \vspace{2mm} 171 171 \scriptsize … … 173 173 \begin{tikzpicture}[auto, node distance=0] 174 174 175 \uncover<8->{\node [green] (green) {/ tmp/$<$username$>$.$<$randomnumber$>$};}175 \uncover<8->{\node [green] (green) {/$<$tmpdir$>$/$<$username$>$.$<$randomnumber$>$};} 176 176 177 177 \uncover<7->{\node [yellowsmall, above=0.1cm of green] (yellow2) {JOBS/};} … … 200 200 % Folie 5 201 201 \begin{frame} 202 \tikzstyle{green} = [rectangle, draw, fill=green!20, text width=0.45\textwidth,font=\scriptsize, minimum height=0.6cm]202 \tikzstyle{green} = [rectangle, draw, fill=green!20, font=\scriptsize, minimum height=0.6cm] 203 203 \tikzstyle{yellow} = [rectangle, draw, fill=yellow!20, text width=0.18\textwidth, font=\scriptsize, minimum height=0.6cm] 204 204 \tikzstyle{dummy} = [rectangle, text width=0.01\textwidth, font=\scriptsize, minimum height=0.6cm] … … 216 216 \uncover<2->{\node [green, right=0.2cm of yellow] (green1) {MAKE\underline{ }DEPOSITORY\underline{ }\textit{parallel}/};} 217 217 \uncover<1->{\node [dummy, right=0.2cm of green1] (dummy2) {};} 218 \uncover<3->{\node [green, below=0.5cm of dummy1] (green2) {/ tmp/$<$username$>$.$<$randomnumber$>$};}218 \uncover<3->{\node [green, below=0.5cm of dummy1] (green2) {/$<$tmpdir$>$/$<$username$>$.$<$randomnumber$>$};} 219 219 \uncover<1->{\node [dummy, below=0.5cm of dummy2] (dummy3) {};} 220 220 \uncover<4->{\node [dummy, right=0.0cm of dummy3] (text) {Makefile\\ … … 239 239 % Folie 6 240 240 \begin{frame} 241 \tikzstyle{green} = [rectangle, draw, fill=green!20, text width=0.45\textwidth,font=\scriptsize, minimum height=0.6cm]241 \tikzstyle{green} = [rectangle, draw, fill=green!20, font=\scriptsize, minimum height=0.6cm] 242 242 \tikzstyle{yellow} = [rectangle, draw, fill=yellow!20, text width=0.18\textwidth, font=\scriptsize, minimum height=0.6cm] 243 243 \tikzstyle{dummy} = [rectangle, text width=0.01\textwidth, font=\scriptsize, minimum height=0.6cm] … … 248 248 \setcounter{enumi}{5} 249 249 \item<1-> Copy the output files from the working directory to a (permanent) directory of the user:\\ 250 \tiny \quad \texttt{cp / tmp/<username>.<randomnumber>/<temporary\underline{ }output\underline{ }file1> <user\underline{ }output\underline{ }file1>}\\251 \quad \texttt{cp / tmp/<username>.<randomnumber>/<temporary\underline{ }output\underline{ }file2> <user\underline{ }output\underline{ }file2>}\\250 \tiny \quad \texttt{cp /<tmpdir>/<username>.<randomnumber>/<temporary\underline{ }output\underline{ }file1> <user\underline{ }output\underline{ }file1>}\\ 251 \quad \texttt{cp /<tmpdir>/<username>.<randomnumber>/<temporary\underline{ }output\underline{ }file2> <user\underline{ }output\underline{ }file2>}\\ 252 252 \footnotesize 253 253 \begin{center} … … 264 264 \uncover<2->{\node [yellow, left=0.2cm of yellow4] (yellow5) {current\underline{ }version/};} 265 265 266 \uncover<2-3>{\node [green, left=5.0cm of dummy1] (green) {/ tmp/$<$username$>$.$<$randomnumber$>$};}266 \uncover<2-3>{\node [green, left=5.0cm of dummy1] (green) {/$<$tmpdir$>$/$<$username$>$.$<$randomnumber$>$};} 267 267 268 268 \draw<2-3> [-] (green.east) -- (dummy1.center); … … 281 281 282 282 \item<3-> Delete the temporary working directory\\ 283 \quad \texttt{rm -rf / tmp/<username>.<randomnumber>}\\283 \quad \texttt{rm -rf /<tmpdir>/<username>.<randomnumber>}\\ 284 284 \vspace{2mm} 285 285 \onslide<5->\textcolor{red}{Question: How does \texttt{mrun} know which files have to be copied and where from or where to they have to be copied?} … … 564 564 \textbf{as soon as message} 565 565 566 \texttt{*** execution starts in directory\\ \quad \dq <t empdir>\dq\, }\\566 \texttt{*** execution starts in directory\\ \quad \dq <tmpdir>\dq\, }\\ 567 567 \ \\ 568 568 \textbf{you can change to this directory (in a new terminal) and watch the progess of timesteps} 569 569 570 \texttt{cd <t empdir>}\\570 \texttt{cd <tmpdir>}\\ 571 571 \texttt{tail -f RUN\underline{ }CONTROL}\\ 572 572 \ \\
Note: See TracChangeset
for help on using the changeset viewer.