/[escript]/trunk/escriptcore/py_src/flows.py
ViewVC logotype

Diff of /trunk/escriptcore/py_src/flows.py

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

revision 1465 by artak, Wed Apr 2 03:28:25 2008 UTC revision 1467 by gross, Wed Apr 2 08:10:37 2008 UTC
# Line 123  class StokesProblemCartesian(Homogeneous Line 123  class StokesProblemCartesian(Homogeneous
123                return True                return True
124            else:            else:
125                return False                return False
126        def stoppingcriterium_GMRES(self,rho,r):        def stoppingcriterium_GMRES(self,norm_r,norm_b):
127            if self.verbose: print "GMRES step %s: L2(rho) = %s, L2(b)*TOL=%s"%(self.iter,rho,r*self.getTolerance())            if self.verbose: print "GMRES step %s: L2(r) = %s, L2(b)*TOL=%s"%(self.iter,norm_r,norm_b*self.getTolerance())
128            self.iter+=1            self.iter+=1
129            if rho <= r*self.getTolerance():            if norm_r <= norm_b*self.getTolerance():
130                if self.verbose: print "GMRES terminated after %s steps."%self.iter                if self.verbose: print "GMRES terminated after %s steps."%self.iter
131                return True                return True
132            else:            else:

Legend:
Removed from v.1465  
changed lines
  Added in v.1467

  ViewVC Help
Powered by ViewVC 1.1.26