Changeset 594 for inundation/ga/storm_surge/pyvolution/test_cg_solve.py
- Timestamp:
- Nov 18, 2004, 10:53:59 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/test_cg_solve.py
r586 r594 81 81 """Standard 2d laplacian""" 82 82 83 n = 5084 m = 5083 n = 100 84 m = 100 85 85 86 86 A = Sparse(m*n, m*n) … … 106 106 #print 'finish covert' 107 107 b = A*xe 108 x = conjugate_gradient(A,b,b,iprint= 10)108 x = conjugate_gradient(A,b,b,iprint=20) 109 109 110 110 assert allclose(x,xe)
Note: See TracChangeset
for help on using the changeset viewer.