From e36f6851e20a7674991b7dbc9d984f59bd30d459 Mon Sep 17 00:00:00 2001 From: couturie Date: Thu, 6 Dec 2012 20:46:58 +0100 Subject: [PATCH] new --- BookGPU/BookGPU.tex | 2 +- BookGPU/Chapters/chapter15/ch15.tex | 32 ++++++++++++++--------------- 2 files changed, 17 insertions(+), 17 deletions(-) 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 -- 2.39.5