Changeset 2670
- Timestamp:
- Apr 6, 2006, 12:20:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/utilities/cg_solve.py
r2661 r2670 67 67 i = i+1 68 68 if i%iprint == 0 : 69 logger.info('i = %g rTr = %20.15e' %(i,rTr))69 logger.info('i = %g rTr = %20.15e' %(i,rTr)) 70 70 71 71 #FIXME: Should this raise an exception? 72 72 if i==imax: 73 73 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 75 75 raise ConvergenceError, msg 76 76
Note: See TracChangeset
for help on using the changeset viewer.