Changeset 8036


Ignore:
Timestamp:
Oct 14, 2010, 5:50:44 PM (14 years ago)
Author:
habili
Message:

Cleaning up the code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/structures/test_boyd_box_operator.py

    r8035 r8036  
    4646        culvert_apron = 0.001
    4747        enquiry_gap = 1.0
     48       
     49        expected_Q = 4.55
     50        expected_v = 2.3
     51        expected_d = 0.54
     52       
    4853
     54        # Probably no need to change below here
     55       
    4956        domain_length = 200.  #x-Dir
    5057        domain_width  = 200.  #y-dir
     
    114121       
    115122
    116         print Q
    117         print v
    118         print d
    119        
    120 
    121         assert numpy.allclose(Q, 4.55, rtol=1.0e-1) #inflow
    122         assert numpy.allclose(v, 2.3,  rtol=1.0e-1) #outflow velocity
    123         assert numpy.allclose(d, 0.54, rtol=1.0e-1) #depth at outlet used to calc v
     123        assert numpy.allclose(Q, expected_Q, rtol=1.0e-2) #inflow
     124        assert numpy.allclose(v, expected_v, rtol=1.0e-2) #outflow velocity
     125        assert numpy.allclose(d, expected_d, rtol=1.0e-2) #depth at outlet used to calc v
    124126       
    125127
Note: See TracChangeset for help on using the changeset viewer.