/[escript]/trunk/escript/py_src/pdetools.py
ViewVC logotype

Diff of /trunk/escript/py_src/pdetools.py

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

revision 1639 by gross, Mon Jul 14 08:55:25 2008 UTC revision 1659 by gross, Fri Jul 18 02:28:13 2008 UTC
# Line 1512  class HomogeneousSaddlePointProblem(obje Line 1512  class HomogeneousSaddlePointProblem(obje
1512                  if self.verbose: print "enter PCG method (iter_max=%s)"%max_iter                  if self.verbose: print "enter PCG method (iter_max=%s)"%max_iter
1513                  p,r=PCG(ArithmeticTuple(self.__z*1.,Bz),self.__Aprod,self.__Msolve,self.__inner,self.__stoppingcriterium,iter_max=max_iter, x=p)                  p,r=PCG(ArithmeticTuple(self.__z*1.,Bz),self.__Aprod,self.__Msolve,self.__inner,self.__stoppingcriterium,iter_max=max_iter, x=p)
1514              u=r[0]                u=r[0]  
1515                  print "DIFF=",util.integrate(p)                  # print "DIFF=",util.integrate(p)
1516    
1517                print "RESULT div(u)=",util.Lsup(self.B(u)),util.Lsup(u)                # print "RESULT div(u)=",util.Lsup(self.B(u)),util.Lsup(u)
1518    
1519            return u,p            return u,p
1520    
# Line 1590  class SaddlePointProblem(object): Line 1590  class SaddlePointProblem(object):
1590         @type verbose: C{bool}         @type verbose: C{bool}
1591         @note: this method may be overwritten by a particular saddle point problem         @note: this method may be overwritten by a particular saddle point problem
1592         """         """
1593           print "SaddlePointProblem should not be used anymore!"
1594         if not isinstance(verbose,bool):         if not isinstance(verbose,bool):
1595              raise TypeError("verbose needs to be of type bool.")              raise TypeError("verbose needs to be of type bool.")
1596         self.__verbose=verbose         self.__verbose=verbose

Legend:
Removed from v.1639  
changed lines
  Added in v.1659

  ViewVC Help
Powered by ViewVC 1.1.26