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

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

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

revision 117 by jgs, Fri Apr 1 05:48:57 2005 UTC revision 123 by jgs, Fri Jul 8 04:08:13 2005 UTC
# Line 19  alpha=0.025 Line 19  alpha=0.025
19  # mydomain=finley.Rectangle(140,140)  # mydomain=finley.Rectangle(140,140)
20    
21  # print "\nGenerate mesh: finley.Rectangle(4,4,1)=>"  # print "\nGenerate mesh: finley.Rectangle(4,4,1)=>"
22  # mydomain=finley.Rectangle(4,4,1)  # mydomain=finley.Rectangle(5,5,1)
23    
24  print "\nGenerate mesh: finley.Rectangle(151,151,1)=>"  print "\nGenerate mesh: finley.Rectangle(151,151,1)=>"
25  mydomain=finley.Rectangle(151,151,1)  mydomain=finley.Rectangle(151,151,1)
# Line 101  print "----------------------------" Line 101  print "----------------------------"
101    
102  print "\nDirect Solver (2)=>"  print "\nDirect Solver (2)=>"
103    
104    #mypde.setSymmetryOn()
105    mypde.setTolerance(1.e-13)
106    
107  # mypde.setSymmetryOn() : is not woking yet!  # mypde.setSymmetryOn() : is not woking yet!
108  mypde.setSolverMethod(mypde.DIRECT)  mypde.setSolverMethod(mypde.DIRECT)
# Line 109  u_d=mypde.getSolution() Line 111  u_d=mypde.getSolution()
111  print "\nIterative Solver (2)=>"  print "\nIterative Solver (2)=>"
112    
113  mypde.setSymmetryOn()  mypde.setSymmetryOn()
114  mypde.setSolverMethod(DEFAULT_METHOD)  mypde.setSolverMethod(mypde.DEFAULT_METHOD)
115  u_i=mypde.getSolution(iter_max=3000)  u_i=mypde.getSolution(iter_max=3000)
116    
117  print "\n******************************************************************"  print "\n******************************************************************"

Legend:
Removed from v.117  
changed lines
  Added in v.123

  ViewVC Help
Powered by ViewVC 1.1.26