Ignore:
Timestamp:
Feb 10, 2009, 11:11:04 AM (15 years ago)
Author:
rwilson
Message:

Initial commit of numpy changes. Still a long way to go.

Location:
branches/numpy
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/culvert_flows/Test_Culvert_Flat_Water_Lev.py

    r6150 r6304  
    2626from math import pi,pow,sqrt
    2727
    28 import Numeric as num
     28import numpy as num
    2929
    3030
  • branches/numpy/anuga/culvert_flows/culvert_class.py

    r6150 r6304  
    1414from anuga.config import minimum_allowed_height, velocity_protection       
    1515
    16 import Numeric as num
     16import numpy as num
    1717
    1818
  • branches/numpy/anuga/culvert_flows/culvert_polygons.py

    r6150 r6304  
    66from anuga.utilities.polygon import inside_polygon, polygon_area
    77
    8 import Numeric as num
     8import numpy as num
    99
    1010
  • branches/numpy/anuga/culvert_flows/test_culvert_class.py

    r6150 r6304  
    2121from math import pi,pow,sqrt
    2222
    23 import Numeric as num
     23import numpy as num
    2424
    2525
     
    470470        ref_volume = domain.get_quantity('stage').get_integral()
    471471        for t in domain.evolve(yieldstep = 1, finaltime = 25):
     472           
    472473            #print domain.timestepping_statistics()
    473474            new_volume = domain.get_quantity('stage').get_integral()
    474            
     475
    475476            msg = 'Total volume has changed'
    476477            assert num.allclose(new_volume, ref_volume), msg
     
    564565#-------------------------------------------------------------
    565566if __name__ == "__main__":
    566     #suite = unittest.makeSuite(Test_Culvert, 'test_that_culvert_rating_limits_flow_in_shallow_inlet_condition')
    567567    suite = unittest.makeSuite(Test_Culvert, 'test')
    568     runner = unittest.TextTestRunner()
     568    runner = unittest.TextTestRunner() #verbosity=2)
    569569    runner.run(suite)
    570570       
Note: See TracChangeset for help on using the changeset viewer.