Changeset 477


Ignore:
Timestamp:
Nov 1, 2004, 3:50:26 PM (20 years ago)
Author:
ole
Message:

Minor cosmetics and comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/cg_solve.py

    r475 r477  
    2323   
    2424   b  = array(b, typecode=Float)
    25    
     25   if len(b.shape) != 1 :
     26      raise VectorShapeError, 'input vector should consist of only one column'
     27
    2628   if x0 is None:
    2729      x0 = zeros(b.shape, typecode=Float)
     
    2931      x0 = array(x0, typecode=Float)
    3032     
    31 
    32    if len(b.shape) != 1 :
    33       raise VectorShapeError, 'input vector should consist of only one column'
    3433
    3534   #FIXME: Should test using None
     
    6160          print 'i = %g rTr = %20.15e'% (i,rTr)
    6261
    63           
     62   #FIXME: Should this raise an exception?       
    6463   if i==imax:
    6564     print 'max number of iterations attained'
Note: See TracChangeset for help on using the changeset viewer.