/[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 2760 by artak, Thu Nov 19 05:22:45 2009 UTC revision 2816 by artak, Thu Dec 10 02:09:43 2009 UTC
# Line 93  class SolverOptions(object): Line 93  class SolverOptions(object):
93      :cvar DEFAULT_REORDERING: the reordering method recommended by the solver      :cvar DEFAULT_REORDERING: the reordering method recommended by the solver
94      :cvar SUPER_LU: the Super_LU solver package      :cvar SUPER_LU: the Super_LU solver package
95      :cvar PASTIX: the Pastix direct solver_package      :cvar PASTIX: the Pastix direct solver_package
96      :cvar YAIR_SHAPIRA_COARSENING: AMLI coarsening method by Yair-Shapira      :cvar YAIR_SHAPIRA_COARSENING: AMG and AMLI coarsening method by Yair-Shapira
97      :cvar RUGE_STUEBEN_COARSENING: AMLI coarsening method by Ruge and Stueben      :cvar RUGE_STUEBEN_COARSENING: AMG and AMLI coarsening method by Ruge and Stueben
98      :cvar AGGREGATION_COARSENING: AMLI coarsening using (symmetric) aggregation      :cvar AGGREGATION_COARSENING: AMG and AMLI coarsening using (symmetric) aggregation
99        :cvar STANDARD_COARSENING: AMG and AMLI standard coarsening using mesure of importance of the unknowns
100      :cvar MIN_COARSE_MATRIX_SIZE: minimum size of the coarsest level matrix to use direct solver.      :cvar MIN_COARSE_MATRIX_SIZE: minimum size of the coarsest level matrix to use direct solver.
101      :cvar NO_PRECONDITIONER: no preconditioner is applied.      :cvar NO_PRECONDITIONER: no preconditioner is applied.
102      """      """
# Line 136  class SolverOptions(object): Line 137  class SolverOptions(object):
137      AGGREGATION_COARSENING=35      AGGREGATION_COARSENING=35
138      NO_PRECONDITIONER=36      NO_PRECONDITIONER=36
139      MIN_COARSE_MATRIX_SIZE=37      MIN_COARSE_MATRIX_SIZE=37
140      AMLI=38          AMLI=38
141        STANDARD_COARSENING=39
142    
143      def __init__(self):      def __init__(self):
144          self.setLevelMax()          self.setLevelMax()
# Line 255  class SolverOptions(object): Line 257  class SolverOptions(object):
257          if key == self.PASTIX: return "PASTIX"          if key == self.PASTIX: return "PASTIX"
258          if key == self.YAIR_SHAPIRA_COARSENING: return "YAIR_SHAPIRA_COARSENING"          if key == self.YAIR_SHAPIRA_COARSENING: return "YAIR_SHAPIRA_COARSENING"
259          if key == self.RUGE_STUEBEN_COARSENING: return "RUGE_STUEBEN_COARSENING"          if key == self.RUGE_STUEBEN_COARSENING: return "RUGE_STUEBEN_COARSENING"
260            if key == self.STANDARD_COARSENING: return "STANDARD_COARSENING"
261          if key == self.AGGREGATION_COARSENING: return "AGGREGATION_COARSENING"          if key == self.AGGREGATION_COARSENING: return "AGGREGATION_COARSENING"
262          if key == self.NO_PRECONDITIONER: return "NO_PRECONDITIONER"          if key == self.NO_PRECONDITIONER: return "NO_PRECONDITIONER"
263          if key == self.MIN_COARSE_MATRIX_SIZE: return "MIN_COARSE_MATRIX_SIZE"          if key == self.MIN_COARSE_MATRIX_SIZE: return "MIN_COARSE_MATRIX_SIZE"
# Line 365  class SolverOptions(object): Line 368  class SolverOptions(object):
368          :type method: in {SolverOptions.DEFAULT}, `SolverOptions.YAIR_SHAPIRA_COARSENING`,  `SolverOptions.RUGE_STUEBEN_COARSENING`, `SolverOptions.AGGREGATION_COARSENING`          :type method: in {SolverOptions.DEFAULT}, `SolverOptions.YAIR_SHAPIRA_COARSENING`,  `SolverOptions.RUGE_STUEBEN_COARSENING`, `SolverOptions.AGGREGATION_COARSENING`
369          """          """
370      if method==None: method=0      if method==None: method=0
371          if not method in [self.DEFAULT, self.YAIR_SHAPIRA_COARSENING, self.RUGE_STUEBEN_COARSENING, self.AGGREGATION_COARSENING]:          if not method in [self.DEFAULT, self.YAIR_SHAPIRA_COARSENING, self.RUGE_STUEBEN_COARSENING, self.AGGREGATION_COARSENING, self.STANDARD_COARSENING,]:
372               raise ValueError,"unknown coarsening method %s"%method               raise ValueError,"unknown coarsening method %s"%method
373          self.__coarsening=method          self.__coarsening=method
374            

Legend:
Removed from v.2760  
changed lines
  Added in v.2816

  ViewVC Help
Powered by ViewVC 1.1.26