/[escript]/branches/diaplayground/poisson.py
ViewVC logotype

Diff of /branches/diaplayground/poisson.py

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

revision 5122 by caltinay, Thu Aug 21 04:32:39 2014 UTC revision 5136 by caltinay, Tue Sep 9 07:13:55 2014 UTC
# Line 5  from time import time Line 5  from time import time
5    
6  BLOCKSIZE=1  BLOCKSIZE=1
7    
8  dom = Rectangle(l0=1.,l1=1.,n0=299, n1=299)  dom = Rectangle(l0=1.,l1=1.,n0=99, n1=99)
9  #dom = Brick(l0=1.,l1=1.,n0=51, n1=51, n2=17)  #dom = Brick(l0=1.,l1=1.,n0=51, n1=51, n2=17)
10  x = dom.getX()  x = dom.getX()
11  gammaD = whereZero(x[0])+whereZero(x[1])  gammaD = whereZero(x[0])+whereZero(x[1])
# Line 32  def solve(target): Line 32  def solve(target):
32      pde.getSolverOptions().setSolverMethod(SolverOptions.PRES20)      pde.getSolverOptions().setSolverMethod(SolverOptions.PRES20)
33      pde.getSolverOptions().setSolverMethod(SolverOptions.BICGSTAB)      pde.getSolverOptions().setSolverMethod(SolverOptions.BICGSTAB)
34      pde.getSolverOptions().setSolverMethod(SolverOptions.PCG)      pde.getSolverOptions().setSolverMethod(SolverOptions.PCG)
35      pde.getSolverOptions().setPreconditioner(SolverOptions.NO_PRECONDITIONER)      pde.getSolverOptions().setSolverMethod(SolverOptions.LSQR)
36      pde.getSolverOptions().setPreconditioner(SolverOptions.JACOBI)      pde.getSolverOptions().setPreconditioner(SolverOptions.JACOBI)
37        pde.getSolverOptions().setPreconditioner(SolverOptions.NO_PRECONDITIONER)
38      pde.getSolverOptions().setVerbosityOn()      pde.getSolverOptions().setVerbosityOn()
39      #pde.setDebugOn()      #pde.setDebugOn()
40      #rhs=pde.getRightHandSide()      #rhs=pde.getRightHandSide()

Legend:
Removed from v.5122  
changed lines
  Added in v.5136

  ViewVC Help
Powered by ViewVC 1.1.26