Ignore:
Timestamp:
Feb 27, 2009, 11:54:09 AM (15 years ago)
Author:
rwilson
Message:

numpy changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/shallow_water/test_smf.py

    r6410 r6428  
    5252        slide = slide_tsunami(length=len, depth=dep, slope=th, x0=x0, \
    5353                              width = wid, thickness=thk, kappa=kappa, kappad=kappad, \
    54                               verbose=False)
     54                              verbose=False)
    5555
    5656        assert num.allclose(slide.a3D, 0.07775819)
     
    111111        slide = slide_tsunami(length, dep, th, x0, y0, \
    112112                              wid, thk, kappa, kappad, \
    113                               domain=domain,verbose=False)
     113                              domain=domain,verbose=False)
    114114
    115115        domain.set_quantity('stage', slide)
    116         stage = domain.get_quantity('stage')
    117         w = stage.get_values()
     116        stage = domain.get_quantity('stage')
     117        w = stage.get_values()
    118118
    119 ##      check = [[-0.0 -0.0 -0.0],
     119##        check = [[-0.0 -0.0 -0.0],
    120120##                 [-.189709745 -517.877716 -0.0],
    121121##                 [-0.0 -0.0 -2.7695931e-08],
     
    126126##                 [-0.0 -0.0 -0.0]]
    127127
    128         assert num.allclose(min(min(w)), -517.877771593)
    129         assert num.allclose(max(max(w)), 0.0)
     128        assert num.allclose(num.min(w), -517.877771593)
     129        assert num.allclose(num.max(w), 0.0)
    130130        assert num.allclose(slide.a3D, 518.38797486)
    131131
Note: See TracChangeset for help on using the changeset viewer.