Changeset 2731
- Timestamp:
- Apr 19, 2006, 10:24:38 PM (19 years ago)
- Location:
- inundation
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/examples/island.py
r2649 r2731 78 78 79 79 #domain.set_quantity('friction', 0.1) #Honky dory 80 domain.set_quantity('friction', 2) #Creep80 domain.set_quantity('friction', 100) #Creep 81 81 domain.set_quantity('elevation', island) 82 82 domain.set_quantity('stage', 1) -
inundation/pyvolution/netherlands.py
r2294 r2731 12 12 #rpdb.set_active() 13 13 14 from shallow_water _vtkimport Domain, Reflective_boundary, Dirichlet_boundary,\14 from shallow_water import Domain, Reflective_boundary, Dirichlet_boundary,\ 15 15 Transmissive_boundary, Constant_height, Constant_stage 16 16 -
inundation/pyvolution/shallow_water.py
r2715 r2731 1191 1191 1192 1192 #print 'Implicit friction' 1193 1193 1194 1194 xmom = domain.quantities['xmomentum'] 1195 1195 ymom = domain.quantities['ymomentum'] … … 1218 1218 1219 1219 #print 'Explicit friction' 1220 1220 1221 1221 xmom = domain.quantities['xmomentum'] 1222 1222 ymom = domain.quantities['ymomentum'] -
inundation/pyvolution/shallow_water_ext.c
r2715 r2731 343 343 alpha = 1.0; //Flat bed 344 344 345 //alpha = 1.0;346 345 347 346 //printf("dz = %.3f, alpha = %.8f\n", dz, alpha); -
inundation/utilities/cg_solve.py
r2670 r2731 69 69 logger.info('i = %g rTr = %20.15e' %(i,rTr)) 70 70 71 #FIXME: Should this raise an exception? 72 if i==imax: 73 logger.warning('max number of iterations attained') 74 msg = 'Conjugate gradient solver did not converge: rTr==%20.15e' %rTr 75 raise ConvergenceError, msg 71 if i==imax: 72 logger.warning('max number of iterations attained') 73 msg = 'Conjugate gradient solver did not converge: rTr==%20.15e' %rTr 74 raise ConvergenceError, msg 76 75 77 76 return x -
inundation/utilities/test_cg_solve.py
r2667 r2731 1 1 #!/usr/bin/env python 2 2 3 import exceptions 4 class TestError(exceptions.Exception): pass 3 5 import unittest 4 6 5 7 6 8 from Numeric import dot, allclose, array, transpose, arange, ones, Float 7 from cg_solve import *8 from sparse import Sparse, Sparse_CSR9 from utilities.cg_solve import * 10 from utilities.sparse import Sparse, Sparse_CSR 9 11 10 12 … … 49 51 else: 50 52 msg = 'Should have raised exception' 51 raise msg53 raise TestError, msg 52 54 53 55 … … 181 183 else: 182 184 msg = 'Should have raised exception' 183 raise msg185 raise TestError, msg 184 186 185 187 … … 191 193 runner.run(suite) 192 194 193 -
inundation/zeus/anuga-workspace.zwi
r2648 r2731 2 2 <workspace name="anuga-workspace"> 3 3 <mode>Debug</mode> 4 <active> analytic_solutions</active>4 <active>pyvolution</active> 5 5 <project name="analytic_solutions">analytic_solutions.zpi</project> 6 6 <project name="euler">euler.zpi</project>
Note: See TracChangeset
for help on using the changeset viewer.