From: couturie Date: Thu, 6 Dec 2012 19:46:58 +0000 (+0100) Subject: new X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/book_gpu.git/commitdiff_plain/e36f6851e20a7674991b7dbc9d984f59bd30d459?ds=sidebyside new --- diff --git a/BookGPU/BookGPU.tex b/BookGPU/BookGPU.tex index 7936982..9ec4258 100755 --- a/BookGPU/BookGPU.tex +++ b/BookGPU/BookGPU.tex @@ -14,7 +14,7 @@ \usepackage{multicol} \usepackage{cite} \usepackage{algorithm} -\usepackage{algorithmicx} +\usepackage{algorithmic} \usepackage[lined,boxed,commentsnumbered]{algorithm2e} \usepackage{epstopdf} \usepackage{url} diff --git a/BookGPU/Chapters/chapter15/ch15.tex b/BookGPU/Chapters/chapter15/ch15.tex index 1eca6ec..020ee51 100644 --- a/BookGPU/Chapters/chapter15/ch15.tex +++ b/BookGPU/Chapters/chapter15/ch15.tex @@ -7,7 +7,7 @@ The Queen's University of Belfast} \newcommand{\fixme}[1]{{\bf #1}} -\chapter{Numerical validation and performance optimization on GPUs of +\chapter[Numerical validation and performance optimization on GPUs in atomic physics]{Numerical validation and performance optimization on GPUs of an application in atomic physics} \label{chapter15} @@ -276,21 +276,21 @@ $\Re^{O}$. the output $R$-matrix becomes the input $R$-matrix for the next evaluation. -%% \begin{algorithm} -%% \caption{\label{prop-algo}PROP algorithm} -%% \begin{algorithmic} -%% \FOR{all scattering energies} -%% \FOR{all sectors} -%% \STATE Read amplitude arrays -%% \STATE Read correction data -%% \STATE Construct local $R$-matrices -%% \STATE From $\Re^{I}$ and local $R$-matrices, compute $\Re^{O}$ -%% \STATE $\Re^{O}$ becomes $\Re^{I}$ for the next sector -%% \ENDFOR -%% \STATE Compute physical $R$-Matrix -%% \ENDFOR -%% \end{algorithmic} -%% \end{algorithm} +\begin{algorithm} +\caption{\label{prop-algo}PROP algorithm} +\begin{algorithmic} +\FOR{all scattering energies} + \FOR{all sectors} + \STATE Read amplitude arrays + \STATE Read correction data +\STATE Construct local $R$-matrices +\STATE From $\Re^{I}$ and local $R$-matrices, compute $\Re^{O}$ +\STATE $\Re^{O}$ becomes $\Re^{I}$ for the next sector + \ENDFOR + \STATE Compute physical $R$-Matrix +\ENDFOR +\end{algorithmic} +\end{algorithm} On the first sector, there is no input $R$-matrix yet. To bootstrap