/[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 1526 by artak, Tue Apr 22 03:45:36 2008 UTC revision 1527 by ksteube, Tue Apr 29 00:52:01 2008 UTC
# Line 1633  class SaddlePointProblem(object): Line 1633  class SaddlePointProblem(object):
1633              norm_u_new = util.Lsup(u_new)              norm_u_new = util.Lsup(u_new)
1634              p_new=p+self.relaxation*g_new              p_new=p+self.relaxation*g_new
1635              norm_p_new = util.sqrt(self.inner(p_new,p_new))              norm_p_new = util.sqrt(self.inner(p_new,p_new))
             self.trace("%s th step: f = %s, f/u = %s, g = %s, g/p = %s, relaxation = %s."%(self.iter, norm_f_new ,norm_f_new/norm_u_new, norm_g_new, norm_g_new/norm_p_new, self.relaxation))  
1636    
1637                self.trace("step %d: f = %e, f/u = %e, g = %e, g/p = %e, relaxation = %e."%(self.iter, norm_f_new ,norm_f_new/norm_u_new, norm_g_new, norm_g_new/norm_p_new, self.relaxation))
1638              if self.iter>1:              if self.iter>1:
1639                 dg2=g_new-g                 dg2=g_new-g
1640                 df2=f_new-f                 df2=f_new-f

Legend:
Removed from v.1526  
changed lines
  Added in v.1527

  ViewVC Help
Powered by ViewVC 1.1.26