/[escript]/trunk/doc/user/user_defs.tex
ViewVC logotype

Contents of /trunk/doc/user/user_defs.tex

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26