Changeset 2731


Ignore:
Timestamp:
Apr 19, 2006, 10:24:38 PM (19 years ago)
Author:
steve
Message:
 
Location:
inundation
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • inundation/examples/island.py

    r2649 r2731  
    7878
    7979#domain.set_quantity('friction', 0.1)  #Honky dory
    80 domain.set_quantity('friction', 2)     #Creep
     80domain.set_quantity('friction', 100)     #Creep
    8181domain.set_quantity('elevation', island)
    8282domain.set_quantity('stage', 1)
  • inundation/pyvolution/netherlands.py

    r2294 r2731  
    1212#rpdb.set_active()
    1313
    14 from shallow_water_vtk import Domain, Reflective_boundary, Dirichlet_boundary,\
     14from shallow_water import Domain, Reflective_boundary, Dirichlet_boundary,\
    1515     Transmissive_boundary, Constant_height, Constant_stage
    1616
  • inundation/pyvolution/shallow_water.py

    r2715 r2731  
    11911191
    11921192    #print 'Implicit friction'
    1193    
     1193
    11941194    xmom = domain.quantities['xmomentum']
    11951195    ymom = domain.quantities['ymomentum']
     
    12181218
    12191219    #print 'Explicit friction'
    1220    
     1220
    12211221    xmom = domain.quantities['xmomentum']
    12221222    ymom = domain.quantities['ymomentum']
  • inundation/pyvolution/shallow_water_ext.c

    r2715 r2731  
    343343      alpha = 1.0;  //Flat bed
    344344
    345     //alpha = 1.0;
    346345
    347346    //printf("dz = %.3f, alpha = %.8f\n", dz, alpha);
  • inundation/utilities/cg_solve.py

    r2670 r2731  
    6969          logger.info('i = %g rTr = %20.15e' %(i,rTr))
    7070
    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
    7675
    7776   return x
  • inundation/utilities/test_cg_solve.py

    r2667 r2731  
    11#!/usr/bin/env python
    22
     3import exceptions
     4class TestError(exceptions.Exception): pass
    35import unittest
    46
    57
    68from Numeric import dot, allclose, array, transpose, arange, ones, Float
    7 from cg_solve import *
    8 from sparse import Sparse, Sparse_CSR
     9from utilities.cg_solve import *
     10from utilities.sparse import Sparse, Sparse_CSR
    911
    1012
     
    4951        else:
    5052            msg = 'Should have raised exception'
    51             raise msg           
     53            raise TestError, msg
    5254
    5355
     
    181183        else:
    182184            msg = 'Should have raised exception'
    183             raise msg
     185            raise TestError, msg
    184186
    185187
     
    191193     runner.run(suite)
    192194
    193 
  • inundation/zeus/anuga-workspace.zwi

    r2648 r2731  
    22<workspace name="anuga-workspace">
    33    <mode>Debug</mode>
    4     <active>analytic_solutions</active>
     4    <active>pyvolution</active>
    55    <project name="analytic_solutions">analytic_solutions.zpi</project>
    66    <project name="euler">euler.zpi</project>
Note: See TracChangeset for help on using the changeset viewer.