Changeset 2661
- Timestamp:
- Apr 5, 2006, 4:01:55 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/utilities/cg_solve.py
r2503 r2661 1 1 import exceptions 2 2 class VectorShapeError(exceptions.Exception): pass 3 class ConvergenceError(exceptions.Exception): pass 3 4 4 5 import logging, logging.config … … 71 72 if i==imax: 72 73 logger.warning('max number of iterations attained') 74 msg = 'Conjugate gradient solver did not converge' 75 raise ConvergenceError, msg 73 76 74 77 return x
Note: See TracChangeset
for help on using the changeset viewer.