/[escript]/trunk/finley/test/python/run_amg.py
ViewVC logotype

Diff of /trunk/finley/test/python/run_amg.py

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

revision 4820 by jfenwick, Thu Feb 6 06:12:20 2014 UTC revision 4821 by sshaw, Tue Apr 1 04:58:33 2014 UTC
# Line 126  class Test_AMG(unittest.TestCase): Line 126  class Test_AMG(unittest.TestCase):
126          if MIN_MATRIX_SIZE!= None: pde.getSolverOptions().setMinCoarseMatrixSize(MIN_MATRIX_SIZE)          if MIN_MATRIX_SIZE!= None: pde.getSolverOptions().setMinCoarseMatrixSize(MIN_MATRIX_SIZE)
127          if MIN_SPARSITY!=None: pde.getSolverOptions().setMinCoarseMatrixSparsity(MIN_SPARSITY)          if MIN_SPARSITY!=None: pde.getSolverOptions().setMinCoarseMatrixSparsity(MIN_SPARSITY)
128          if MAX_LEVEL!=None: pde.getSolverOptions().setLevelMax(MAX_LEVEL)          if MAX_LEVEL!=None: pde.getSolverOptions().setLevelMax(MAX_LEVEL)
129          pde.getSolverOptions().setAMGInterpolation(pde.getSolverOptions().DIRECT_INTERPOLATION)          pde.getSolverOptions().setAMGInterpolation(SolverOptions.DIRECT_INTERPOLATION)
130    
131          u=pde.getSolution()          u=pde.getSolution()
132          # -------- test the solution ---------------------------          # -------- test the solution ---------------------------
# Line 162  class Test_AMG(unittest.TestCase): Line 162  class Test_AMG(unittest.TestCase):
162          if MIN_MATRIX_SIZE!= None: pde.getSolverOptions().setMinCoarseMatrixSize(MIN_MATRIX_SIZE)          if MIN_MATRIX_SIZE!= None: pde.getSolverOptions().setMinCoarseMatrixSize(MIN_MATRIX_SIZE)
163          if MIN_SPARSITY!=None: pde.getSolverOptions().setMinCoarseMatrixSparsity(MIN_SPARSITY)          if MIN_SPARSITY!=None: pde.getSolverOptions().setMinCoarseMatrixSparsity(MIN_SPARSITY)
164          if MAX_LEVEL!=None: pde.getSolverOptions().setLevelMax(MAX_LEVEL)          if MAX_LEVEL!=None: pde.getSolverOptions().setLevelMax(MAX_LEVEL)
165          pde.getSolverOptions().setAMGInterpolation(pde.getSolverOptions().CLASSIC_INTERPOLATION)          pde.getSolverOptions().setAMGInterpolation(SolverOptions.CLASSIC_INTERPOLATION)
166    
167          u=pde.getSolution()          u=pde.getSolution()
168          # -------- test the solution ---------------------------          # -------- test the solution ---------------------------
# Line 198  class Test_AMG(unittest.TestCase): Line 198  class Test_AMG(unittest.TestCase):
198          if MIN_MATRIX_SIZE!= None: pde.getSolverOptions().setMinCoarseMatrixSize(MIN_MATRIX_SIZE)          if MIN_MATRIX_SIZE!= None: pde.getSolverOptions().setMinCoarseMatrixSize(MIN_MATRIX_SIZE)
199          if MIN_SPARSITY!=None: pde.getSolverOptions().setMinCoarseMatrixSparsity(MIN_SPARSITY)          if MIN_SPARSITY!=None: pde.getSolverOptions().setMinCoarseMatrixSparsity(MIN_SPARSITY)
200          if MAX_LEVEL!=None: pde.getSolverOptions().setLevelMax(MAX_LEVEL)          if MAX_LEVEL!=None: pde.getSolverOptions().setLevelMax(MAX_LEVEL)
201          pde.getSolverOptions().setAMGInterpolation(pde.getSolverOptions().CLASSIC_INTERPOLATION_WITH_FF_COUPLING)          pde.getSolverOptions().setAMGInterpolation(SolverOptions.CLASSIC_INTERPOLATION_WITH_FF_COUPLING)
202    
203          u=pde.getSolution()          u=pde.getSolution()
204          # -------- test the solution ---------------------------          # -------- test the solution ---------------------------
# Line 396  class Test_AMG(unittest.TestCase): Line 396  class Test_AMG(unittest.TestCase):
396          if MIN_MATRIX_SIZE!= None: pde.getSolverOptions().setMinCoarseMatrixSize(MIN_MATRIX_SIZE)          if MIN_MATRIX_SIZE!= None: pde.getSolverOptions().setMinCoarseMatrixSize(MIN_MATRIX_SIZE)
397          if MIN_SPARSITY!=None: pde.getSolverOptions().setMinCoarseMatrixSparsity(MIN_SPARSITY)          if MIN_SPARSITY!=None: pde.getSolverOptions().setMinCoarseMatrixSparsity(MIN_SPARSITY)
398          if MAX_LEVEL!=None: pde.getSolverOptions().setLevelMax(MAX_LEVEL)          if MAX_LEVEL!=None: pde.getSolverOptions().setLevelMax(MAX_LEVEL)
399          pde.getSolverOptions().setAMGInterpolation(pde.getSolverOptions().CLASSIC_INTERPOLATION)          pde.getSolverOptions().setAMGInterpolation(SolverOptions.CLASSIC_INTERPOLATION)
400    
401          u=pde.getSolution()          u=pde.getSolution()
402          # -------- test the solution ---------------------------          # -------- test the solution ---------------------------
# Line 438  class Test_AMG(unittest.TestCase): Line 438  class Test_AMG(unittest.TestCase):
438          if MIN_MATRIX_SIZE!= None: pde.getSolverOptions().setMinCoarseMatrixSize(MIN_MATRIX_SIZE)          if MIN_MATRIX_SIZE!= None: pde.getSolverOptions().setMinCoarseMatrixSize(MIN_MATRIX_SIZE)
439          if MIN_SPARSITY!=None: pde.getSolverOptions().setMinCoarseMatrixSparsity(MIN_SPARSITY)          if MIN_SPARSITY!=None: pde.getSolverOptions().setMinCoarseMatrixSparsity(MIN_SPARSITY)
440          if MAX_LEVEL!=None: pde.getSolverOptions().setLevelMax(MAX_LEVEL)          if MAX_LEVEL!=None: pde.getSolverOptions().setLevelMax(MAX_LEVEL)
441          pde.getSolverOptions().setAMGInterpolation(pde.getSolverOptions().CLASSIC_INTERPOLATION)          pde.getSolverOptions().setAMGInterpolation(SolverOptions.CLASSIC_INTERPOLATION)
442    
443          u=pde.getSolution()          u=pde.getSolution()
444          # -------- test the solution ---------------------------          # -------- test the solution ---------------------------
# Line 483  class Test_AMG(unittest.TestCase): Line 483  class Test_AMG(unittest.TestCase):
483          if MIN_MATRIX_SIZE!= None: pde.getSolverOptions().setMinCoarseMatrixSize(MIN_MATRIX_SIZE)          if MIN_MATRIX_SIZE!= None: pde.getSolverOptions().setMinCoarseMatrixSize(MIN_MATRIX_SIZE)
484          if MIN_SPARSITY!=None: pde.getSolverOptions().setMinCoarseMatrixSparsity(MIN_SPARSITY)          if MIN_SPARSITY!=None: pde.getSolverOptions().setMinCoarseMatrixSparsity(MIN_SPARSITY)
485          if MAX_LEVEL!=None: pde.getSolverOptions().setLevelMax(MAX_LEVEL)          if MAX_LEVEL!=None: pde.getSolverOptions().setLevelMax(MAX_LEVEL)
486          pde.getSolverOptions().setAMGInterpolation(pde.getSolverOptions().CLASSIC_INTERPOLATION)          pde.getSolverOptions().setAMGInterpolation(SolverOptions.CLASSIC_INTERPOLATION)
487    
488          u=pde.getSolution()          u=pde.getSolution()
489          # -------- test the solution ---------------------------          # -------- test the solution ---------------------------

Legend:
Removed from v.4820  
changed lines
  Added in v.4821

  ViewVC Help
Powered by ViewVC 1.1.26