Ignore:
Timestamp:
Apr 5, 2006, 4:05:03 PM (19 years ago)
Author:
ole
Message:

Fixed test of CG

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/utilities/test_cg_solve.py

    r2638 r2662  
    4343        x =  [0.0, 0.0, 0.0, 0.0]
    4444
    45         x = conjugate_gradient(A,b,x,iprint=0,imax=2)
     45        try:
     46            x = conjugate_gradient(A,b,x,iprint=0,imax=2)
     47        except ConvergenceError:
     48            pass
     49        else:
     50            raise 'Should have raised exception'
    4651
    4752
     
    181186if __name__ == "__main__":
    182187     suite = unittest.makeSuite(Test_CG_Solve,'test')
    183      runner = unittest.TextTestRunner(verbosity=2)
     188     #runner = unittest.TextTestRunner(verbosity=2)
     189     runner = unittest.TextTestRunner(verbosity=1)
    184190     runner.run(suite)
    185191
Note: See TracChangeset for help on using the changeset viewer.