/[escript]/trunk/escript/py_src/linearPDEs.py
ViewVC logotype

Diff of /trunk/escript/py_src/linearPDEs.py

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

revision 2834 by artak, Tue Dec 22 01:24:40 2009 UTC revision 2835 by artak, Mon Jan 11 01:23:52 2010 UTC
# Line 428  class SolverOptions(object): Line 428  class SolverOptions(object):
428                                      `SolverOptions.NO_PRECONDITIONER`                                      `SolverOptions.NO_PRECONDITIONER`
429          """          """
430          return self.__preconditioner          return self.__preconditioner
431      def setSmoother(self, smoother=10):      def setSmoother(self, smoother=28):
432          """          """
433          Sets the smoother to be used.          Sets the smoother to be used.
434    
# Line 436  class SolverOptions(object): Line 436  class SolverOptions(object):
436          :type smoother: in `SolverOptions.JACOBI`, `SolverOptions.GAUSS_SEIDEL`          :type smoother: in `SolverOptions.JACOBI`, `SolverOptions.GAUSS_SEIDEL`
437          :note: Not all packages support all smoothers. It can be assumed that a package makes a reasonable choice if it encounters an unknown smoother.          :note: Not all packages support all smoothers. It can be assumed that a package makes a reasonable choice if it encounters an unknown smoother.
438          """          """
439      if smoother==None: smoother=10      if smoother==None: smoother=28
440          if not smoother in [ SolverOptions.JACOBI, SolverOptions.GAUSS_SEIDEL ] :          if not smoother in [ SolverOptions.JACOBI, SolverOptions.GAUSS_SEIDEL ] :
441               raise ValueError,"unknown smoother %s"%preconditioner               raise ValueError,"unknown smoother %s"%preconditioner
442          self.__smoother=smoother              self.__smoother=smoother    

Legend:
Removed from v.2834  
changed lines
  Added in v.2835

  ViewVC Help
Powered by ViewVC 1.1.26