/[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 115 by jgs, Fri Mar 4 07:12:47 2005 UTC revision 117 by jgs, Fri Apr 1 05:48:57 2005 UTC
# Line 60  print "mypde.checkSymmetry()" Line 60  print "mypde.checkSymmetry()"
60  print mypde.checkSymmetry()  print mypde.checkSymmetry()
61    
62  print "\nIterative Solver (1)=>"  print "\nIterative Solver (1)=>"
63  u_i=mypde.getSolution(preconditioner=ILU0,iter_max=3000)  # u_i=mypde.getSolution(preconditioner=ILU0,iter_max=3000)
64  # u_i=mypde.getSolution(iter_max=3000)  u_i=mypde.getSolution(iter_max=3000)
65    
66    
67  print "\nDirect Solver (1)=>"  print "\nDirect Solver (1)=>"
68  mypde.setSolverMethod(DIRECT)  mypde.setSolverMethod(DIRECT)
69  u_d=mypde.getSolution()  u_d=mypde.getSolution()
70    
   
71  print "\n***************************************************************"  print "\n***************************************************************"
72  error=u_ex-u_d  error=u_ex-u_d
73  print "norm of the error for direct solver is   : ",error.Lsup()/norm_u_ex  print "norm of the error for direct solver is   : ",error.Lsup()/norm_u_ex

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

  ViewVC Help
Powered by ViewVC 1.1.26