Changeset 2670


Ignore:
Timestamp:
Apr 6, 2006, 12:20:46 PM (19 years ago)
Author:
ole
Message:

More diagnostics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/utilities/cg_solve.py

    r2661 r2670  
    6767       i = i+1
    6868       if i%iprint == 0 :
    69           logger.info('i = %g rTr = %20.15e'% (i,rTr))
     69          logger.info('i = %g rTr = %20.15e' %(i,rTr))
    7070
    7171   #FIXME: Should this raise an exception?
    7272   if i==imax:
    7373       logger.warning('max number of iterations attained')
    74        msg = 'Conjugate gradient solver did not converge'
     74       msg = 'Conjugate gradient solver did not converge: rTr==%20.15e' %rTr
    7575       raise ConvergenceError, msg
    7676
Note: See TracChangeset for help on using the changeset viewer.