/[escript]/trunk/doc/cookbook/TEXT/cookbook_defs.tex
ViewVC logotype

Contents of /trunk/doc/cookbook/TEXT/cookbook_defs.tex

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2426 - (show annotations)
Fri May 15 04:28:31 2009 UTC (10 years, 5 months ago) by ahallam
File MIME type: application/x-tex
File size: 13627 byte(s)
Week 7: Work done on wave problem.
1
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % Copyright (c) 2003-2008 by University of Queensland
5 % Earth Systems Science Computational Center (ESSCC)
6 % http://www.uq.edu.au/esscc
7 %
8 % Primary Business: Queensland, Australia
9 % Licensed under the Open Software License version 3.0
10 % http://www.opensource.org/licenses/osl-3.0.php
11 %
12 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13
14
15 \usepackage{subfigure}
16 \usepackage{epsfig}
17 \usepackage{graphicx,color}
18 \usepackage{makeidx} % handle the index properly
19 \usepackage{xspace} % handle spaces after commands more nicely
20 % use the ams math stuff, as it makes the maths easier to code, and
21 % nicer output than the standard LaTeX stuff
22 \usepackage{amsmath,amsfonts,amssymb} % this is handy for mathematicians and physicists
23 % see http://www.ams.org/tex/amslatex.html
24 \usepackage{alltt} % handy verbatim stuff
25
26
27 %Tony's Commands
28 \newcommand{\editor}[1] {\textit{EDITORIAL: {#1}}}
29 %\newcommand{\eqref}[1] {(\ref{#1})}
30 \newcommand{\esc}{\module{escript}\xspace}
31 \newcommand{\fileex}[1]{\module{\textbackslash examples\textbackslash {#1}}\xspace}
32
33 % % define some handy commands for escript stuff
34 % \newcommand{\LINUX}{{\it Linux}\xspace}
35 % \newcommand{\WINDOWS}{{\it MS Windows}\xspace}
36 % \newcommand{\PYTHON}{{\it python}\xspace}
37 % % \newcommand{\netCDF}{{\it netCDF}\cite{NETCDF}\index{netCDF} \xspace}
38 % \newcommand{\netCDF}{{\it netCDF}\index{netCDF}\xspace}
39 % \newcommand{\escript}{\module{esys.escript}\xspace}
40 % \newcommand{\finley}{\module{esys.finley}\xspace}
41 % \newcommand{\esys}{\module{esys}\xspace}
42 % \newcommand{\pyvisi}{\module{esys.pyvisi}\xspace}
43 % \newcommand{\pycad}{\module{esys.pycad}\xspace}
44 % \newcommand{\gmsh}{\module{esys.pycad.gmsh}\xspace}
45 % \newcommand{\gmshextern}{{\it Gmsh}\cite{GMSH}\index{Gmsh} \xspace}
46 % \newcommand{\env}[1]{\textbf{\mbox{#1}}\index{Environment!#1}}
47 % % \newcommand{\MPI}{{\it MPI}\xspace\index{Message Passing Interface!MPI}\cite{MPI}\xspace}
48 % % \newcommand{\OPENMP}{{\it OpenMP}\xspace\index{OpenMP!threading}\cite{OPENMP}\xspace}
49 % \newcommand{\MPI}{{\it MPI}\xspace\index{Message Passing Interface!MPI}\xspace}
50 % \newcommand{\OPENMP}{{\it OpenMP}\xspace\index{OpenMP!threading}\xspace}
51 % \newcommand{\linearPDEs}{\module{esys.escript.linearPDEs}\xspace}
52 % \newcommand{\LinearPDE}{\class{LinearPDE}\xspace}
53 % \newcommand{\timeseries}{\module{esys.timeseries}\xspace}
54 % \newcommand{\modelframe}{\module{esys.modelframe}\xspace}
55 % \newcommand{\pdetools}{\module{esys.pdetools}\xspace}
56 % \newcommand{\esysxml}{{\it esysxml}}
57 %
58 % \newcommand{\AdvectivePDE}{\class{AdvectivePDE}\xspace}
59 % \newcommand{\Poisson}{\class{Poisson}\xspace}
60 % \newcommand{\Helmholtz}{\class{Helmholtz}\xspace}
61 % \newcommand{\Lame}{\class{Lame}\xspace}
62 % \newcommand{\Data}{\class{Data}\xspace}
63 % \newcommand{\EmptyData}{empty \class{Data}\index{empty Data}\xspace}
64 % \newcommand{\Domain}{\class{Domain}\xspace}
65 % %\newcommand{\VTK}{{\it vtk} \cite{VTK}\index{visualization!vtk} \xspace}
66 % \newcommand{\GnuPlot}{{\it gnuplot} \cite{GNUPLOT}\index{visualization!gnuplot}\index{gnuplot}}
67 % \newcommand{\mayavi}{{\it mayavi}\index{visualization!mayavi}\index{mayavi}}
68 % \newcommand{\OpenDX}{{\it OpenDX} \cite{OPENDX}\xspace}
69 % \newcommand{\finleyelement}[1]{{\it #1}\index{finley!#1}}
70 % \newcommand{\False}{\constant{False}\xspace}
71 % \newcommand{\True}{\constant{True}\xspace}
72 % \newcommand{\PCG}{\constant{LinearPDE.PCG}\xspace\index{linear solver!PCG}\index{PCG}}
73 % \newcommand{\BiCGStab}{\constant{LinearPDE.BICGSTAB}\xspace\index{linear solver!BiCGStab}\index{BiCGStab}}
74 % \newcommand{\Direct}{\constant{LinearPDE.DIRECT}\xspace\index{linear solver!Direct}\index{Direct solver}}
75 % \newcommand{\GMRES}{\constant{LinearPDE.GMRES}\xspace\index{linear solver!GMRES}\index{GMRES}}
76 % \newcommand{\PRESTWENTY}{\constant{LinearPDE.PRES20}\xspace\index{linear solver!PRES20}\index{PRES20}}
77 % \newcommand{\JACOBI}{\constant{LinearPDE.JACOBI}\xspace\index{preconditioner!Jacobi}\index{Jacobi}}
78 % \newcommand{\ILU}{\constant{LinearPDE.ILU0}\xspace\index{preconditioner!ILU0}\index{ILU0}}
79 % \newcommand{\ILUT}{\constant{LinearPDE.ILUT}\xspace\index{preconditioner!ILUT}\index{ILUT}}
80 % \newcommand{\LUMPING}{\constant{LinearPDE.LUMPING}\xspace\index{linear solver!lumping}\index{lumping}}
81 % \newcommand{\NOREORDERING}{\constant{LinearPDE.NO\hackscore REORDERING}\xspace}
82 % \newcommand{\MINIMUMFILLIN}{\constant{LinearPDE.MINIMUM\hackscore FILL\hackscore IN}\xspace\index{linear solver!minimum fill-in ordering}\index{minimum fill-in ordering}}
83 % \newcommand{\NESTEDDESCTION}{\constant{LinearPDE.NESTED\hackscore DISSECTION}\xspace\index{linear solver!nested dissection ordering}\index{nested dissection}}
84 %
85 % \newcommand{\FunctionSpace}{\class{FunctionSpace}\xspace}
86 % \newcommand{\Operator}{\class{Operator}\xspace}
87 % \newcommand{\SolutionFS}{solution \class{FunctionSpace}\index{solution}\xspace}
88 % \newcommand{\ReducedSolutionFS}{reduced solution \class{FunctionSpace}\index{solution!reduced}\xspace}
89 % \newcommand{\FunctionOnBoundary}{boundary \class{FunctionSpace}\xspace}
90 % \newcommand{\Function}{general \class{FunctionSpace}\xspace}
91 % \newcommand{\FunctionOnContactZero}{contact \class{FunctionSpace} on side 0\xspace}
92 % \newcommand{\FunctionOnContactOne}{contact \class{FunctionSpace} on side 1\xspace}
93 % \newcommand{\ContinuousFunction}{continuous \class{FunctionSpace}\xspace}
94 % \newcommand{\RankOne}{{rank-1 \Data object}\xspace}
95 % \newcommand{\RankTwo}{{rank-2 \Data object}\xspace}
96 % \newcommand{\RankThree}{{rank-3 \Data object}\xspace}
97 % \newcommand{\RankFour}{{rank-4 \Data object}\xspace}
98 % \newcommand{\Tensor}{{tensor \Data object}\xspace}
99 % \newcommand{\Vector}{{vector \Data object}\xspace}
100 % \newcommand{\Scalar}{{scalar \Data object}\xspace}
101 % \newcommand{\DataSample}{{data sample}\index{data sample}\xspace}
102 % \newcommand{\DataSamplePoints}{{data sample points}\index{data sample!points}\xspace}
103 % \newcommand{\numarray}{\module{numarray}\xspace}
104 % \newcommand{\numarrayNA}{\module{numarray}.\class{NumArray}\xspace}
105 % \newcommand{\Shape}{shape\xspace\index{shape}}
106 % \newcommand{\Rank}{rank\xspace\index{shape}}
107 % \newcommand{\ExampleDirectory}{example directory\xspace}
108 % \newcommand{\ReferenceGuide}{\url{http://shake200.esscc.uq.edu.au/esys/docs.html}\xspace}
109 % \newcommand{\Point}{\class{Point} \xspace}
110 % \newcommand{\PropertySet}{\class{PropertySet} \xspace}
111 % \newcommand{\Design}{\class{Design} \xspace}
112 % \newcommand{\TagMap}{\class{TagMap} \xspace}
113 % \newcommand{\ManifoldOneD}{\class{Manifold1D} \xspace}
114 % \newcommand{\ManifoldTwoD}{\class{Manifold2D} \xspace}
115 % \newcommand{\ManifoldThreeD}{\class{Manifold3D} \xspace}
116 %
117 % % default width for figures
118 % \newcommand{\figwidth}{100mm}
119 % % commands useful in cross-referencing
120 % \newcommand {\Ref}[1] {Reference~\cite{#1}}
121 % \newcommand {\Sec}[1] {Section~\ref{#1}}
122 % \newcommand {\App}[1] {Appendix~\ref{#1}}
123 % \newcommand {\Chap}[1] {Chapter~\ref{#1}}
124 % \newcommand {\etal} {\emph{~et~al.}}
125 % \newcommand {\fig}[1] {Figure~\ref{#1}}
126 % \newcommand {\eqn}[1] {Equation~(\ref{#1})}
127 % \newcommand {\tab}[1] {Table~\ref{#1}}
128 %
129 % % this stops one figure taking up a whole page and lets more text onto
130 % % the one page when a figure exists
131 % \renewcommand{\floatpagefraction}{0.8} % Default = 0.5
132 %
133 % % improved version of caption handling
134 % \usepackage{ccaption}
135 % \captionnamefont{\scshape}
136 % \captionstyle{}
137 % \makeatletter
138 % \renewcommand{\fnum@figure}[1]{\quad\small\textsc{\figurename~\thefigure}:}
139 % \renewcommand{\@makecaption}[2]{%
140 % \vskip\abovecaptionskip
141 % \sbox\@tempboxa{#1: #2}%
142 % \ifdim \wd\@tempboxa >\hsize
143 % \def\baselinestretch{1}\@normalsize
144 % #1: #2\par
145 % \def\baselinestretch{1.5}\@normalsize
146 % \else
147 % \global \@minipagefalse
148 % \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
149 % \fi
150 % \vskip\belowcaptionskip}
151 % \makeatother
152 %
153 % % \usepackage{fancyvrb} % fancy verbatim stuff. Needed so code below goes
154 % %%% this code grabbed from the PyScript docs
155 % %%% pyscript.sourceforge.net
156
157 % --------------------------------------------------------------
158 % Code format within \Verb
159 % --------------------------------------------------------------
160
161 % \definecolor{pycolor}{rgb}{0,0.4,0}
162
163 %% \DefineVerbatimEnvironment{python}{Verbatim}
164 %% {frame=leftline,framerule=.5mm,rulecolor=\color{pycolor},
165 %% formatcom=\color{pycolor}\small,fontshape=rm}
166
167 %\DefineShortVerb[formatcom=\color{dgreen}\small,fontshape=sl]{\|}
168
169 % \RecustomVerbatimCommand{\Verb}{Verb}{formatcom=\color{pycolor}\small,fontshape=rm}
170
171 %%% end of grabbed code
172
173 % this is for when one uses pdflatex and therefore needs to load pdf
174 % figures into \includegraphics
175 % \ifpdf
176 % \DeclareGraphicsExtensions{.pdf} % this command defined in graphicx
177 % \pdfcompresslevel=9 % 0: no compression, 9: highest compression
178 % % or, set compress_level 9 in file pdftex.cfg
179 % \else
180 % \DeclareGraphicsExtensions{.eps}
181 % \fi
182 %
183 % % defines the colour for the background of code examples
184 % \definecolor{LightGrey}{gray}{0.9}
185 %
186 % % add the listings package to pretty print the code output
187 % \usepackage{listings}
188 %
189 %
190 % %Some colour definitions added to keep pdflatex happy
191 % %I make no claim that these values are particularly good
192 % \definecolor{Purple}{rgb}{0.7, 0, 0.6}
193 % \definecolor{Tan}{rgb}{0.5,0.5,0.5}
194 % \definecolor{BrickRed}{rgb}{0.7, 0.2, 0.2}
195 %
196 % % All the \color{x} used to be \color[named]{x}
197 % %end color defs
198 %
199 % \lstdefinestyle{myC++}{%
200 % %\lstset{%
201 % language=C++,
202 % showstringspaces=false,
203 % basicstyle=\small\ttfamily,
204 % commentstyle=\color{BrickRed}\ttfamily,
205 % keywordstyle=\color{Purple}\ttfamily,
206 % %identifierstyle=\color{Blue}\ttfamily,
207 % %functionstyle=\color{Blue}\ttfamily,
208 % %typestyle=\color{ForestGreen}\ttfamily,
209 % stringstyle=\color{Tan}\ttfamily,%
210 % morekeywords={,complex,}%
211 % frame=none,%
212 % backgroundcolor=\color{LightGrey}%
213 % }
214 %
215 % \lstdefinestyle{myMatlab}{%
216 % %\lstset{%
217 % language=Matlab,
218 % showstringspaces=false,
219 % basicstyle=\small\ttfamily,
220 % commentstyle=\color{BrickRed}\ttfamily,
221 % keywordstyle=\color{Purple}\ttfamily,
222 % %identifierstyle=\color{Blue}\ttfamily,
223 % %functionstyle=\color{Blue}\ttfamily,
224 % %typestyle=\color{ForestGreen}\ttfamily,
225 % stringstyle=\color{Tan}\ttfamily,%
226 % frame=none,%
227 % backgroundcolor=\color{LightGrey}%
228 % }
229 %
230 % \lstdefinestyle{myScilab}{%
231 % %\lstset{%
232 % language=Scilab,
233 % showstringspaces=false,
234 % basicstyle=\small\ttfamily,
235 % commentstyle=\color{BrickRed}\ttfamily,
236 % keywordstyle=\color{Purple}\ttfamily,
237 % %identifierstyle=\color{Blue}\ttfamily,
238 % %functionstyle=\color{Blue}\ttfamily,
239 % %typestyle=\color{ForestGreen}\ttfamily,
240 % stringstyle=\color{Tan}\ttfamily,%
241 % frame=none,%
242 % backgroundcolor=\color{LightGrey}%
243 % }
244 %
245 % \lstdefinestyle{myShell}{%
246 % %\lstset{%
247 % language=ksh,
248 % showstringspaces=false,
249 % basicstyle=\small\ttfamily,
250 % commentstyle=\color{Black}\ttfamily,
251 % keywordstyle=\color{Black}\ttfamily,
252 % %identifierstyle=\color{Blue}\ttfamily,
253 % %functionstyle=\color{Blue}\ttfamily,
254 % %typestyle=\color{ForestGreen}\ttfamily,
255 % stringstyle=\color{Black}\ttfamily,%
256 % frame=none,%
257 % backgroundcolor=\color{LightGrey}%
258 % }
259 %
260 % \lstdefinestyle{myPython}{%
261 % %\lstset{%
262 % language=python,
263 % showstringspaces=false,
264 % basicstyle=\small\ttfamily,
265 % commentstyle=\color{BrickRed}\ttfamily,
266 % keywordstyle=\color{Purple}\ttfamily,
267 % %identifierstyle=\color{Blue}\ttfamily,
268 % %functionstyle=\color{Blue}\ttfamily,
269 % %typestyle=\color{ForestGreen}\ttfamily,
270 % stringstyle=\color{Tan}\ttfamily,%
271 % frame=none,%
272 % %backgroundcolor=\color{LightGrey}%
273 % }
274 %
275 % \lstdefinestyle{myhtml}{%
276 % %\lstset{%
277 % language=xml,
278 % showstringspaces=false,
279 % basicstyle=\small\ttfamily,
280 % commentstyle=\color{BrickRed}\ttfamily,
281 % keywordstyle=\color{Purple}\ttfamily,
282 % %identifierstyle=\color{Blue}\ttfamily,
283 % %functionstyle=\color{Blue}\ttfamily,
284 % %typestyle=\color{ForestGreen}\ttfamily,
285 % stringstyle=\color{Tan}\ttfamily,
286 % morekeywords={,simulation,prop_dim,error_check,stochastic,%
287 % globals,field,dimensions,lattice,domains,samples,vector,%
288 % components,fourier_space,sequence,integrate,algorithm,%
289 % interval,k_operators,constant,operator_names,vectors,%
290 % output,filename,group,sampling,moments,benchmark,use_double,%
291 % use_wisdom,use_prefs,binary_output,cycles,filter,post_propagation,%
292 % default_value,argv,arg,iterations,cross_propagation,%
293 % use_mpi,paths,seed,noises,author,description,name,type,%
294 % }
295 % frame=none,%
296 % %framerule=2pt,%
297 % backgroundcolor=\color{LightGrey}%
298 % }
299 %
300 % % this implements producing nice code blocks
301 % % it also saves time, typing and
302 % % *should* reduce errors in the text by removing doubling up of code
303 % \lstnewenvironment{xmdsCode}[1][]{\lstset{style=myhtml}\lstset{#1}}{}
304 %
305 % % this implements nicely formatted shell code
306 % \lstnewenvironment{shellCode}[1][]{\lstset{style=myShell}\lstset{#1}}{}
307 %
308 % % this implements nicely formatted Perl code
309 % \lstnewenvironment{perlCode}[1][]{\lstset{style=myPerl}\lstset{#1}}{}
310 %
311 % % this implements nicely formatted Python code
312 % \lstnewenvironment{python}[1][]{\lstset{style=myPython}\lstset{#1}}{}
313 %
314 % % this implements nicely formatted C++ code
315 % \lstnewenvironment{CCode}{\lstset{style=myC++}}{}
316 %
317 % % this implements nicely formatted matlab code
318 % \lstnewenvironment{matlabCode}{\lstset{style=myMatlab}}{}
319 %
320 % % this implements nicely formatted scilab code
321 % \lstnewenvironment{scilabCode}{\lstset{style=myScilab}}{}
322 %
323 % %Ensures that latex doesn't have an error if we don't specify the version
324 % \providecommand{\RepVersion}{Unknown\xspace}
325 % to set this value use:
326 % (pdf)latex '\newcommand{\RepVersion}{version\xspace}\input{guide.tex}'
327 % as your command-line

  ViewVC Help
Powered by ViewVC 1.1.26