Changeset 477
- Timestamp:
- Nov 1, 2004, 3:50:26 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/cg_solve.py
r475 r477 23 23 24 24 b = array(b, typecode=Float) 25 25 if len(b.shape) != 1 : 26 raise VectorShapeError, 'input vector should consist of only one column' 27 26 28 if x0 is None: 27 29 x0 = zeros(b.shape, typecode=Float) … … 29 31 x0 = array(x0, typecode=Float) 30 32 31 32 if len(b.shape) != 1 :33 raise VectorShapeError, 'input vector should consist of only one column'34 33 35 34 #FIXME: Should test using None … … 61 60 print 'i = %g rTr = %20.15e'% (i,rTr) 62 61 63 62 #FIXME: Should this raise an exception? 64 63 if i==imax: 65 64 print 'max number of iterations attained'
Note: See TracChangeset
for help on using the changeset viewer.