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

Diff of /trunk/doc/user/changes.tex

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2470 by gross, Thu Jun 11 08:32:32 2009 UTC revision 2474 by gross, Tue Jun 16 06:32:15 2009 UTC
# Line 15  Line 15 
15  \label{app:changes}  \label{app:changes}
16    
17  \subsection*{2.0 to 3.0}  \subsection*{2.0 to 3.0}
18  The major change here was replacing \module{numarray} with \numpy.  \begin{itemize}
19    \item The major change here was replacing \module{numarray} with \numpy.
20  For general instructions on converting scripts to use numpy see \url{http://www.stsci.edu/resources/software_hardware/numarray/numarray2numpy.pdf}.  For general instructions on converting scripts to use numpy see \url{http://www.stsci.edu/resources/software_hardware/numarray/numarray2numpy.pdf}.
21  The specific changes to \escript are:  The specific changes to \escript are:
22  \begin{itemize}  \begin{itemize}
# Line 28  the components of the data point. In the Line 29  the components of the data point. In the
29  \end{itemize}  \end{itemize}
30  Any python methods which previously accepted \module{numarray} objects will accept \numpy objects instead.  Any python methods which previously accepted \module{numarray} objects will accept \numpy objects instead.
31    
32    \item
33    The way solver options are defined for \LinearPDE objects has been changed. There is now a \SolverOptions object attached to the \LinearPDE object which is handeling the options of solvers used to solve the PDE. The following changes apply:  
34    \begin{itemize}
35    \item The \method{setTolerance} and \method{setAbsoluteTolerance} methods have been removed. Use now \method{getSolverOptions().setTolerance}
36    and \method{getSolverOptions().setAbsoluteTolerance}
37    
38    \item The \method{setSolverPackage} and \method{setSolverMethod} methods have been removed. Use now \method{getSolverOptions().setPackage},
39    \method{getSolverOptions().setSolverMethod} and
40    \method{getSolverOptions().setPreconditioner}.
41    
42    \item The \method{setSolverPackage} and \method{setSolverMethod} methods have been removed. Use now \method{getSolverOptions().setPackage},
43    \method{getSolverOptions().setSolverMethod} and
44    \method{getSolverOptions().setPreconditioner}.
45    
46    \item The static class variables defining packages, solvers and preconditioners have been removed and are now accessed via the corresponding  static class variables in \SolverOptions. For instance use \method{SolverOptions.PCG} instead of
47    \method{LinearPDE.PCG} to select the preconditioned conjugate gradient method.
48    
49    \item The \method{getSolution} takes now no argument. Use the corresponding
50    methods of the \SolverOptions object returned by \method{getSolverOptions()}
51    to set values, e.g. use
52    \method{getSolverOptions().setVerbosityOn()} instead of argument \code{verbose=True}
53    and \method{getSolverOptions().setIterMax(1000)} instead of argument \code{iter_max=1000}
54    \end{itemize}
55    
56    
57    \end{itemize}

Legend:
Removed from v.2470  
changed lines
  Added in v.2474

  ViewVC Help
Powered by ViewVC 1.1.26